You are here

public function Comment::getTypeId in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::getTypeId()

Get the comment type ID for this comment.

Return value

string The ID of the comment type.

Overrides CommentInterface::getTypeId

File

core/modules/comment/src/Entity/Comment.php, line 538

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

public function getTypeId() {
  return $this
    ->bundle();
}