function BlockContentController::getAddFormTitle

Same name in other branches
  1. 9 core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::getAddFormTitle()
  2. 8.9.x core/modules/block_content/src/Controller/BlockContentController.php \Drupal\block_content\Controller\BlockContentController::getAddFormTitle()
  3. 10 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 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 135

Class

BlockContentController

Namespace

Drupal\block_content\Controller

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.