annotate core/lib/Drupal/Core/Render/PreviewFallbackInterface.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
rev   line source
Chris@17 1 <?php
Chris@17 2
Chris@17 3 namespace Drupal\Core\Render;
Chris@17 4
Chris@17 5 /**
Chris@17 6 * Allows an element to provide a fallback representation of itself for preview.
Chris@17 7 */
Chris@17 8 interface PreviewFallbackInterface {
Chris@17 9
Chris@17 10 /**
Chris@17 11 * Returns a string to be used as a fallback during preview.
Chris@17 12 *
Chris@17 13 * This is typically used when an element has no output and must be displayed,
Chris@17 14 * for example during configuration.
Chris@17 15 *
Chris@17 16 * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
Chris@17 17 * A string representing for this.
Chris@17 18 */
Chris@17 19 public function getPreviewFallbackString();
Chris@17 20
Chris@17 21 }