public function NodeController::addPageTitle in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/src/Controller/NodeController.php \Drupal\node\Controller\NodeController::addPageTitle()
The _title_callback for the node.add route.
Parameters
\Drupal\node\NodeTypeInterface $node_type: The current node.
Return value
string The page title.
1 string reference to 'NodeController::addPageTitle'
- node.routing.yml in core/
modules/ node/ node.routing.yml - core/modules/node/node.routing.yml
File
- core/
modules/ node/ src/ Controller/ NodeController.php, line 286
Class
- NodeController
- Returns responses for Node routes.
Namespace
Drupal\node\ControllerCode
public function addPageTitle(NodeTypeInterface $node_type) {
return $this
->t('Create @name', [
'@name' => $node_type
->label(),
]);
}