summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/layout_builder/src/TempStoreIdentifierInterface.php
blob: 037d778ffb9b0260aa3bd734a10375571645da25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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();

}