TempStoreIdentifierInterface.php

Same filename in other branches
  1. 9 core/modules/layout_builder/src/TempStoreIdentifierInterface.php
  2. 10 core/modules/layout_builder/src/TempStoreIdentifierInterface.php
  3. 11.x core/modules/layout_builder/src/TempStoreIdentifierInterface.php

Namespace

Drupal\layout_builder

File

core/modules/layout_builder/src/TempStoreIdentifierInterface.php

View source
<?php

namespace Drupal\layout_builder;


/**
 * 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.
 */
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();

}

Interfaces

Title Deprecated Summary
TempStoreIdentifierInterface Provides an interface that allows an object to provide its own tempstore key.

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