function node_uri

Entity URI callback.

Parameters

\Drupal\Core\Entity\EntityInterface $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 221
The core module that allows content to be submitted to the site.

Code

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