From 2aa98311cf9dc69834f4a4692c5d5fc40acd5c5a Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 10 Jul 2014 11:20:03 +0100
Subject: [PATCH] Issue #2010162 by tim.plunkett | InternetDevels: Convert
 node_uri() to $node->uri().

---
 core/modules/node/node.module         | 15 ---------------
 core/modules/node/src/Entity/Node.php |  1 -
 2 files changed, 16 deletions(-)

diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index b9a23251a486..44ac84908bd2 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 90ab790d645e..19f311ecd573 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 = {
-- 
GitLab