You are here

public property SectionStorage::$context_definitions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::context_definitions
  2. 10 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\Annotation

Code

public $context_definitions = [];