diff --git a/core/modules/node/node.module b/core/modules/node/node.module index b9a23251a486e1b48ba240ee3a4d3a7f1f117f65..44ac84908bd2eaf5c6afeca2573c45676556cf23 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -210,21 +210,6 @@ function node_entity_form_display_alter(EntityFormDisplayInterface $form_display } } -/** - * Entity URI callback. - * - * @param \Drupal\node\NodeInterface $node - * A node entity. - * - * @return \Drupal\core\Url - * A Url object that provides a URL to the view page for $node. - */ -function node_uri(NodeInterface $node) { - return new Url('node.view', array( - 'node' => $node->id(), - )); -} - /** * Gathers a listing of links to nodes. * diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index 90ab790d645ef76028392b30bb4ca12785d2addd..19f311ecd57368f35e9570752e337eaa54870fff 100644 --- a/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -39,7 +39,6 @@ * data_table = "node_field_data", * revision_table = "node_revision", * revision_data_table = "node_field_revision", - * uri_callback = "node_uri", * fieldable = TRUE, * translatable = TRUE, * entity_keys = {