BlockContentController::getAddFormTitle

public BlockContentController::getAddFormTitle(BlockContentTypeInterface $block_content_type)

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.

File

core/modules/block_content/src/Controller/BlockContentController.php, line 125

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()));
}
doc_Drupal
2016-10-29 08:46:50
Comments
Leave a Comment

Please login to continue.