You are here

interface TempStoreIdentifierInterface in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/TempStoreIdentifierInterface.php \Drupal\layout_builder\TempStoreIdentifierInterface
  2. 10 core/modules/layout_builder/src/TempStoreIdentifierInterface.php \Drupal\layout_builder\TempStoreIdentifierInterface

Provides an interface that allows an object to provide its own tempstore key.

@todo Move to \Drupal\Core\TempStore in https://www.drupal.org/node/3026957.

Hierarchy

Expanded class hierarchy of TempStoreIdentifierInterface

All classes that implement TempStoreIdentifierInterface

1 file declares its use of TempStoreIdentifierInterface
SectionStorageBase.php in core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php

File

core/modules/layout_builder/src/TempStoreIdentifierInterface.php, line 10

Namespace

Drupal\layout_builder
View source
interface TempStoreIdentifierInterface {

  /**
   * Gets a string suitable for use as a tempstore key.
   *
   * @return string
   *   A string to be used as the key for a tempstore item.
   */
  public function getTempstoreKey();

}

Members

Namesort descending Modifiers Type Description Overrides
TempStoreIdentifierInterface::getTempstoreKey public function Gets a string suitable for use as a tempstore key. 1