function OverridesSectionStorage::getEntity
Same name in other branches
- 9 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
- 8.9.x core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getEntity()
- 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.
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\SectionStorageCode
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.