interface TempStoreIdentifierInterface

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/TempStoreIdentifierInterface.php \Drupal\layout_builder\TempStoreIdentifierInterface
  2. 8.9.x core/modules/layout_builder/src/TempStoreIdentifierInterface.php \Drupal\layout_builder\TempStoreIdentifierInterface
  3. 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

Title Sort descending Modifiers Object type Summary Overrides
TempStoreIdentifierInterface::getTempstoreKey public function Gets a string suitable for use as a tempstore key. 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.