comparison core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
44 $contexts = array_filter($this->contextRepository()->getAvailableContexts(), function (ContextInterface $context) { 44 $contexts = array_filter($this->contextRepository()->getAvailableContexts(), function (ContextInterface $context) {
45 return $context->hasContextValue(); 45 return $context->hasContextValue();
46 }); 46 });
47 47
48 // Add in the per-section_storage contexts. 48 // Add in the per-section_storage contexts.
49 $contexts += $section_storage->getContexts(); 49 $contexts += $section_storage->getContextsDuringPreview();
50 return $contexts; 50 return $contexts;
51 } 51 }
52 52
53 } 53 }