public BlockEntityOffCanvasForm::title(BlockInterface $block)
Provides a title callback to get the block's admin label.
Parameters
\Drupal\block\BlockInterface $block: The block entity.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The title.
File
- core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 28
Class
- BlockEntityOffCanvasForm
- Provides form for block instance forms when used in the off-canvas tray.
Namespace
Drupal\outside_in\Block
Code
1 2 3 4 5 | public function title(BlockInterface $block ) { // @todo Wrap "Configure " in <span class="visually-hidden"></span> once // https://www.drupal.org/node/2359901 is fixed. return $this ->t( 'Configure @block' , [ '@block' => $block ->getPlugin()->getPluginDefinition()[ 'admin_label' ]]); } |
Please login to continue.