PreviewFallbackInterface.php 528 B

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