public function BlockContentController::getAddFormTitle in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::getAddFormTitle()
- 9 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::getAddFormTitle()
Provides the page title for this controller.
Parameters
\Drupal\block_content\BlockContentTypeInterface $block_content_type: The custom block type being added.
Return value
string The page title.
1 string reference to 'BlockContentController::getAddFormTitle'
- block_content.routing.yml in core/
modules/ block_content/ block_content.routing.yml - core/modules/block_content/block_content.routing.yml
File
- core/
modules/ block_content/ src/ Controller/ BlockContentController.php, line 127
Class
Namespace
Drupal\block_content\ControllerCode
public function getAddFormTitle(BlockContentTypeInterface $block_content_type) {
return $this
->t('Add %type custom block', [
'%type' => $block_content_type
->label(),
]);
}