function OverridesSectionStorage::getEntity

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
  2. 10 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
  3. 11.x core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()

Gets the entity storing the overrides.

Return value

\Drupal\Core\Entity\FieldableEntityInterface The entity storing the overrides.

6 calls to OverridesSectionStorage::getEntity()
OverridesSectionStorage::access in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Overrides \Drupal\Core\Access\AccessibleInterface::access().
OverridesSectionStorage::getDefaultSectionStorage in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Returns the corresponding defaults section storage for this override.
OverridesSectionStorage::getLayoutBuilderUrl in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Gets the URL used to display the Layout Builder UI.
OverridesSectionStorage::getStorageId in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Returns an identifier for this storage.
OverridesSectionStorage::getTempstoreKey in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Gets a string suitable for use as a tempstore key.

... See full list

File

core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php, line 139

Class

OverridesSectionStorage
Defines the 'overrides' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

protected function getEntity() {
    return $this->getContextValue('entity');
}

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