diff --git a/core/modules/node/lib/Drupal/node/Controller/NodeViewController.php b/core/modules/node/lib/Drupal/node/Controller/NodeViewController.php index d2091ab..0142e2c 100644 --- a/core/modules/node/lib/Drupal/node/Controller/NodeViewController.php +++ b/core/modules/node/lib/Drupal/node/Controller/NodeViewController.php @@ -25,7 +25,7 @@ public static function create(ContainerInterface $container) { /** * Page callback: Displays a single node. * - * @param NodeInterface $node + * @param \Drupal\node\NodeInterface $node * The node entity. * * @return array diff --git a/core/modules/node/node.module b/core/modules/node/node.module index ce8eefd..fb29bc1 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -1634,8 +1634,6 @@ function node_menu() { 'file' => 'node.pages.inc', ); $items['node/%node'] = array( - 'title callback' => 'node_page_title', - 'title arguments' => array(1), 'route_name' => 'node_view', ); $items['node/%node/view'] = array( @@ -1727,21 +1725,6 @@ function node_type_page_title($type) { } /** - * Title callback: Displays the node's title. - * - * @param \Drupal\Core\Entity\EntityInterface $node - * The node entity. - * - * @return - * An unsanitized string that is the title of the node. - * - * @see node_menu() - */ -function node_page_title(EntityInterface $node) { - return $node->label(); -} - -/** * Finds the last time a node was changed. * * @param $nid diff --git a/core/modules/node/node.routing.yml b/core/modules/node/node.routing.yml index a38e1b0..115113d 100644 --- a/core/modules/node/node.routing.yml +++ b/core/modules/node/node.routing.yml @@ -17,4 +17,4 @@ node_view: node: '' requirements: _entity_access: 'node.view' - node: \d+ \ No newline at end of file + node: \d+