PreviewFallbackInterface
interface PreviewFallbackInterface (View source)
Allows an element to provide a fallback representation of itself for preview.
Methods
string|TranslatableMarkup
getPreviewFallbackString()
Returns a string to be used as a fallback during preview.
Details
string|TranslatableMarkup
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.