public function Comment::setThread in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 526 - Contains \Drupal\comment\Entity\Comment.
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\EntityCode
public function setThread($thread) {
$this
->set('thread', $thread);
return $this;
}