diff core/modules/layout_builder/src/TempStoreIdentifierInterface.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/modules/layout_builder/src/TempStoreIdentifierInterface.php	Thu May 09 15:33:08 2019 +0100
@@ -0,0 +1,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();
+
+}