function FieldBlock::getPreviewFallbackString
Overrides BlockPluginTrait::getPreviewFallbackString
File
-
core/
modules/ layout_builder/ src/ Plugin/ Block/ FieldBlock.php, line 187
Class
- FieldBlock
- Provides a block that renders a field from an entity.
Namespace
Drupal\layout_builder\Plugin\BlockCode
public function getPreviewFallbackString() {
return new TranslatableMarkup('"@field" field', [
'@field' => $this->getFieldDefinition()
->getLabel(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.