You are here

public function PoItem::setComment in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
  2. 9 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.

File

core/lib/Drupal/Component/Gettext/PoItem.php, line 182

Class

PoItem
PoItem handles one translation.

Namespace

Drupal\Component\Gettext

Code

public function setComment($comment) {
  $this->comment = $comment;
}