function 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.