public function Comment::setThread in Drupal 9
Same name and namespace in other branches
- 8 core/modules/comment/src/Entity/Comment.php \Drupal\comment\Entity\Comment::setThread()
Sets the alphadecimal representation of the comment's place in a thread.
Parameters
string $thread: The alphadecimal representation of the comment's place in a thread.
Return value
$this The class instance that this method is called on.
Overrides CommentInterface::setThread
1 call to Comment::setThread()
- Comment::preSave in core/
modules/ comment/ src/ Entity/ Comment.php - Acts on an entity before the presave hook is invoked.
File
- core/
modules/ comment/ src/ Entity/ Comment.php, line 496
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\EntityCode
public function setThread($thread) {
$this
->set('thread', $thread);
return $this;
}