Commit 2aa98311 authored by alexpott's avatar alexpott

Issue #2010162 by tim.plunkett | InternetDevels: Convert node_uri() to $node->uri().

parent aa5bf1b8
......@@ -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.
*
......
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment