You are here

public function PreviewFallbackInterface::getPreviewFallbackString in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/PreviewFallbackInterface.php \Drupal\Core\Render\PreviewFallbackInterface::getPreviewFallbackString()

Returns a string to be used as a fallback during preview.

This is typically used when an element has no output and must be displayed, for example during configuration.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup A string representing for this.

File

core/lib/Drupal/Core/Render/PreviewFallbackInterface.php, line 19

Class

PreviewFallbackInterface
Allows an element to provide a fallback representation of itself for preview.

Namespace

Drupal\Core\Render

Code

public function getPreviewFallbackString();