comparison core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
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 }