Comment::getSubject

public Comment::getSubject()

Returns the subject of the comment.

Return value

string The subject of the comment.

Overrides CommentInterface::getSubject

File

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

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

1
2
3
public function getSubject() {
  return $this->get('subject')->value;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.