function node_uri

Entity URI callback.

Parameters

Drupal\node\Node $node: A node entity.

Return value

array An array with 'path' as the key and the path to the node as its value.

File

drupal/core/modules/node/node.module, line 233
The core module that allows content to be submitted to the site.

Code

function node_uri(Node $node) {
  return array(
    'path' => 'node/' . $node->nid,
  );
}