You are here

public function OverridesSectionStorage::getStorageId in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getStorageId()

Returns an identifier for this storage.

Return value

string The unique identifier for this storage.

Overrides SectionStorageInterface::getStorageId

File

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

Class

OverridesSectionStorage
Defines the 'overrides' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function getStorageId() {
  $entity = $this
    ->getEntity();
  return $entity
    ->getEntityTypeId() . '.' . $entity
    ->id();
}