function comment_uri
comment_uri(CommentInterface $comment)
Entity URI callback.
File
- core/modules/comment/comment.module, line 86
- 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()) ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!comment!comment.module/function/comment_uri/8.1.x