function comment_uri

Entity URI callback.

File

drupal/core/modules/comment/comment.module, line 138
Enables users to comment on published content.

Code

function comment_uri(Comment $comment) {
  return array(
    'path' => 'comment/' . $comment
      ->id(),
    'options' => array(
      'fragment' => 'comment-' . $comment
        ->id(),
    ),
  );
}