NodeViewController::title

public NodeViewController::title(EntityInterface $node)

The _title_callback for the page that renders a single node.

Parameters

\Drupal\Core\Entity\EntityInterface $node: The current node.

Return value

string The page title.

File

core/modules/node/src/Controller/NodeViewController.php, line 108

Class

NodeViewController
Defines a controller to render a single node.

Namespace

Drupal\node\Controller

Code

public function title(EntityInterface $node) {
  return $this->entityManager->getTranslationFromContext($node)->label();
}
doc_Drupal
2016-10-29 09:31:50
Comments
Leave a Comment

Please login to continue.