Comment::setSubject

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;
}
doc_Drupal
2016-10-29 08:50:25
Comments
Leave a Comment

Please login to continue.