public function CommentType::setDescription in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/Entity/CommentType.php \Drupal\comment\Entity\CommentType::setDescription()
- 9 core/modules/comment/src/Entity/CommentType.php \Drupal\comment\Entity\CommentType::setDescription()
Sets the description of the comment type.
Parameters
string $description: The new description.
Return value
$this
Overrides CommentTypeInterface::setDescription
File
- core/
modules/ comment/ src/ Entity/ CommentType.php, line 94
Class
- CommentType
- Defines the comment type entity.
Namespace
Drupal\comment\EntityCode
public function setDescription($description) {
$this->description = $description;
return $this;
}