You are here

interface TempStoreIdentifierInterface in Drupal 8

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

2 files declare their use of TempStoreIdentifierInterface
layout_builder.post_update.php in core/modules/layout_builder/layout_builder.post_update.php
Post update functions for Layout Builder.
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