3 namespace Drupal\Core\Render;
6 * Allows an element to provide a fallback representation of itself for preview.
8 interface PreviewFallbackInterface {
11 * Returns a string to be used as a fallback during preview.
13 * This is typically used when an element has no output and must be displayed,
14 * for example during configuration.
16 * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
17 * A string representing for this.
19 public function getPreviewFallbackString();