public function Comment::id

Implements Drupal\Core\Entity\EntityInterface::id().

Overrides EntityNG::id

1 call to Comment::id()
Comment::permalink in drupal/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php
Returns the permalink URL for this comment.

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php, line 223
Definition of Drupal\comment\Plugin\Core\Entity\Comment.

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Plugin\Core\Entity

Code

public function id() {
  return $this
    ->get('cid')->value;
}