You are here

public property SectionStorage::$context_definitions in Drupal 9

Same name and namespace in other branches
  1. 8 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 = [];