You are here

public function SectionStorageBase::getStorageType in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php \Drupal\layout_builder\Plugin\SectionStorage\SectionStorageBase::getStorageType()

Returns the type of this storage.

Used in conjunction with the storage ID.

Return value

string The type of storage.

Overrides SectionStorageInterface::getStorageType

3 calls to SectionStorageBase::getStorageType()
DefaultsSectionStorage::buildRoutes in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Provides the routes needed for Layout Builder UI.
DefaultsSectionStorage::getSectionListFromId in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Derives the section list from the storage ID.
OverridesSectionStorage::getSectionListFromId in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Derives the section list from the storage ID.

File

core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php, line 53

Class

SectionStorageBase
Provides a base class for Section Storage types.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function getStorageType() {
  return $this
    ->getPluginId();
}