public function Comment::getSubject in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\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 400  - Contains \Drupal\comment\Entity\Comment.
 
Class
- Comment
 - Defines the comment entity class.
 
Namespace
Drupal\comment\EntityCode
public function getSubject() {
  return $this
    ->get('subject')->value;
}