function SectionStorage::get

Same name in this branch
  1. 11.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::get()
Same name in other branches
  1. 9 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::get()
  2. 8.9.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::get()
  3. 10 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::get()
  4. 10 core/modules/layout_builder/src/Attribute/SectionStorage.php \Drupal\layout_builder\Attribute\SectionStorage::get()

Overrides AttributeBase::get

File

core/modules/layout_builder/src/Attribute/SectionStorage.php, line 55

Class

SectionStorage
Defines a SectionStorage attribute.

Namespace

Drupal\layout_builder\Attribute

Code

public function get() : SectionStorageDefinition {
    return new SectionStorageDefinition([
        'id' => $this->id,
        'class' => $this->class,
        'weight' => $this->weight,
        'context_definitions' => $this->context_definitions,
        'handles_permission_check' => $this->handles_permission_check,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.