public Comment::setSubject($subject)
Sets the subject of the comment.
Parameters
string $subject: The subject of the comment.
Return value
$this The class instance that this method is called on.
Overrides CommentInterface::setSubject
File
- core/modules/comment/src/Entity/Comment.php, line 386
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\Entity
Code
public function setSubject($subject) { $this->set('subject', $subject); return $this; }
Please login to continue.