Implements Drupal\Core\Entity\EntityInterface::id().
Overrides EntityNG::id
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;
}