NodeController::addPageTitle

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()));
}
doc_Drupal
2016-10-29 09:30:37
Comments
Leave a Comment

Please login to continue.