annotate core/lib/Drupal/Core/Render/PreviewFallbackInterface.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents
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 }