function PreviewFallbackInterface::getPreviewFallbackString
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Render/PreviewFallbackInterface.php \Drupal\Core\Render\PreviewFallbackInterface::getPreviewFallbackString()
- 10 core/lib/Drupal/Core/Render/PreviewFallbackInterface.php \Drupal\Core\Render\PreviewFallbackInterface::getPreviewFallbackString()
- 11.x 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\RenderCode
public function getPreviewFallbackString();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.