function PoItem::setComment
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
- 10 core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
- 11.x core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
Set the comment of this translation.
Parameters
string $comment: The comment of this translation.
1 call to PoItem::setComment()
- PoItem::setFromArray in core/
lib/ Drupal/ Component/ Gettext/ PoItem.php - Create the PoItem from a structured array.
File
-
core/
lib/ Drupal/ Component/ Gettext/ PoItem.php, line 178
Class
- PoItem
- PoItem handles one translation.
Namespace
Drupal\Component\GettextCode
public function setComment($comment) {
$this->comment = $comment;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.