summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorLee Rowlands2018-11-18 21:40:04 (GMT)
committerLee Rowlands2018-11-18 21:41:19 (GMT)
commit8e6330417043a571a01de625355106f4d6450ddc (patch)
tree726567cf398e4d567abdaef06187d9cc2a751b3e /core/lib/Drupal/Core/Render
parenta3e4724f7a8245f0a478c56578d7ed13aa80d09c (diff)
Issue #3013187 by tim.plunkett: Rename PlaceholderInterface to PreviewFallbackInterface
(cherry picked from commit d1c7fa1bc2832f8b7aadb87640b645e35491bc4f)
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/PlaceholderInterface.php21
-rw-r--r--core/lib/Drupal/Core/Render/PreviewFallbackInterface.php21
2 files changed, 21 insertions, 21 deletions
diff --git a/core/lib/Drupal/Core/Render/PlaceholderInterface.php b/core/lib/Drupal/Core/Render/PlaceholderInterface.php
deleted file mode 100644
index cc8ff6e..0000000
--- a/core/lib/Drupal/Core/Render/PlaceholderInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-namespace Drupal\Core\Render;
-
-/**
- * Allows an element to provide a placeholder representation of itself.
- */
-interface PlaceholderInterface {
-
- /**
- * Returns a string to be used as a placeholder.
- *
- * This is typically used when an element has no output and must be displayed,
- * for example during configuration.
- *
- * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
- * A placeholder string for this element.
- */
- public function getPlaceholderString();
-
-}
diff --git a/core/lib/Drupal/Core/Render/PreviewFallbackInterface.php b/core/lib/Drupal/Core/Render/PreviewFallbackInterface.php
new file mode 100644
index 0000000..cbaf6ac
--- /dev/null
+++ b/core/lib/Drupal/Core/Render/PreviewFallbackInterface.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Core\Render;
+
+/**
+ * Allows an element to provide a fallback representation of itself for preview.
+ */
+interface PreviewFallbackInterface {
+
+ /**
+ * Returns a string to be used as a fallback during preview.
+ *
+ * This is typically used when an element has no output and must be displayed,
+ * for example during configuration.
+ *
+ * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
+ * A string representing for this.
+ */
+ public function getPreviewFallbackString();
+
+}