function comment_uri

Entity URI callback.

1 call to comment_uri()
CommentUriDeprecationTest::testCommentUriMethod in core/modules/comment/tests/src/Kernel/CommentUriDeprecationTest.php
Tests the deprecation of comment_uri() method.

File

core/modules/comment/comment.module, line 26

Code

function comment_uri(CommentInterface $comment) {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \\Drupal\\comment\\Entity\\Comment::permalink() instead. See https://www.drupal.org/node/3384294', E_USER_DEPRECATED);
  return $comment->permalink();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.