comment_uri

comment_uri(CommentInterface $comment)

Entity URI callback.

File

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

Code

function comment_uri(CommentInterface $comment) {
  return new Url(
  'entity.comment.canonical', 
  array(
    'comment' => $comment->id(),
  ), 
  array('fragment' => 'comment-' . $comment->id())
  );
}
doc_Drupal
2016-10-29 08:51:30
Comments
Leave a Comment

Please login to continue.