public function BlockPluginTrait::getPreviewFallbackString in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::getPreviewFallbackString()
- 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::getPreviewFallbackString()
File
- core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 265
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
public function getPreviewFallbackString() {
return $this
->t('"@block" block', [
'@block' => $this
->label(),
]);
}