Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PreviewFallbackInterface.php

function 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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal