summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-07-10 10:20:03 (GMT)
committerAlex Pott2014-07-10 10:20:03 (GMT)
commit2aa98311cf9dc69834f4a4692c5d5fc40acd5c5a (patch)
tree3fe8ea7468cb5a172f34be467b1ce711609cf97d
parentaa5bf1b88e0dfefaf8bb75ef8378f3cb8257adbd (diff)
Issue #2010162 by tim.plunkett | InternetDevels: Convert node_uri() to $node->uri().
-rw-r--r--core/modules/node/node.module15
-rw-r--r--core/modules/node/src/Entity/Node.php1
2 files changed, 0 insertions, 16 deletions
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index b9a2325..44ac849 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -211,21 +211,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.
*
* @param $result
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 90ab790..19f311e 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -39,7 +39,6 @@ use Drupal\user\UserInterface;
* 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 = {