function BlockPluginTrait::getPreviewFallbackString

Same name in other branches
  1. 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::getPreviewFallbackString()
  2. 8.9.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::getPreviewFallbackString()
  3. 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::getPreviewFallbackString()
3 methods override BlockPluginTrait::getPreviewFallbackString()
ExtraFieldBlock::getPreviewFallbackString in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
FieldBlock::getPreviewFallbackString in core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
ViewsBlockBase::getPreviewFallbackString in core/modules/views/src/Plugin/Block/ViewsBlockBase.php

File

core/lib/Drupal/Core/Block/BlockPluginTrait.php, line 268

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

public function getPreviewFallbackString() {
    return $this->t('"@block" block', [
        '@block' => $this->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.