function OverridesSectionStorage::getEntity

Same name in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
  2. 8.9.x core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
  3. 10 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
OverridesSectionStorage::getDefaultSectionStorage in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getLayoutBuilderUrl in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getStorageId in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getTempstoreKey in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php

... See full list

File

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

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.