Entity URI callback.
\Drupal\Core\Entity\EntityInterface $node: A node entity.
array An array with 'path' as the key and the path to the node as its value.
function node_uri(EntityInterface $node) {
return array(
'path' => 'node/' . $node->nid->value,
);
}