public NodeController::addPageTitle(NodeTypeInterface $node_type)
The _title_callback for the node.add route.
Parameters
\Drupal\node\NodeTypeInterface $node_type: The current node.
Return value
string The page title.
File
- core/modules/node/src/Controller/NodeController.php, line 281
Class
- NodeController
- Returns responses for Node routes.
Namespace
Drupal\node\Controller
Code
public function addPageTitle(NodeTypeInterface $node_type) { return $this->t('Create @name', array('@name' => $node_type->label())); }
Please login to continue.