You are here

public function BlockContentController::getAddFormTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::getAddFormTitle()
  2. 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

BlockContentController

Namespace

Drupal\block_content\Controller

Code

public function getAddFormTitle(BlockContentTypeInterface $block_content_type) {
  return $this
    ->t('Add %type custom block', [
    '%type' => $block_content_type
      ->label(),
  ]);
}