public Comment::permalink()
Returns the permalink URL for this comment.
Return value
Overrides CommentInterface::permalink
File
- core/modules/comment/src/Entity/Comment.php, line 201
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\Entity
Code
public function permalink() { $uri = $this->urlInfo(); $uri->setOption('fragment', 'comment-' . $this->id()); return $uri; }
Please login to continue.