You are here

public function OverridesSectionStorage::getStorageId in Drupal 8

Same name and namespace in other branches
  1. 9 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 146

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();
}