SectionStorage::$context_definitions
Same name in other branches
- 9 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::context_definitions
- 10 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::context_definitions
- 11.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::context_definitions
Any required context definitions, optional.
When an entity with layout is rendered, all section storage plugins which match a particular set of contexts are checked, in order of their weight, to determine which plugin should be used to render the layout.
Type: array
See also
\Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::findByContext()
File
-
core/
modules/ layout_builder/ src/ Annotation/ SectionStorage.php, line 47
Class
- SectionStorage
- Defines a Section Storage type annotation object.
Namespace
Drupal\layout_builder\AnnotationCode
public $context_definitions = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.