Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Render / PreviewFallbackInterface.php
1 <?php
2
3 namespace Drupal\Core\Render;
4
5 /**
6  * Allows an element to provide a fallback representation of itself for preview.
7  */
8 interface PreviewFallbackInterface {
9
10   /**
11    * Returns a string to be used as a fallback during preview.
12    *
13    * This is typically used when an element has no output and must be displayed,
14    * for example during configuration.
15    *
16    * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
17    *   A string representing for this.
18    */
19   public function getPreviewFallbackString();
20
21 }