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

public function getSubject() {
  return $this->get('subject')->value;
}
doc_Drupal
2016-10-29 08:50:21
Comments
Leave a Comment

Please login to continue.