You are here

public function CommentType::getTargetEntityTypeId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Entity/CommentType.php \Drupal\comment\Entity\CommentType::getTargetEntityTypeId()
  2. 9 core/modules/comment/src/Entity/CommentType.php \Drupal\comment\Entity\CommentType::getTargetEntityTypeId()

Gets the target entity type id for this comment type.

Return value

string The target entity type id.

Overrides CommentTypeInterface::getTargetEntityTypeId

File

core/modules/comment/src/Entity/CommentType.php, line 102

Class

CommentType
Defines the comment type entity.

Namespace

Drupal\comment\Entity

Code

public function getTargetEntityTypeId() {
  return $this->target_entity_type_id;
}