You are here

public function BlockContentController::getAddFormTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 130
Contains \Drupal\block_content\Controller\BlockContentController.

Class

BlockContentController

Namespace

Drupal\block_content\Controller

Code

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