function PoItem::setComment

Same name in other branches
  1. 9 core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
  2. 8.9.x core/lib/Drupal/Component/Gettext/PoItem.php \Drupal\Component\Gettext\PoItem::setComment()
  3. 10 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 180

Class

PoItem
PoItem handles one translation.

Namespace

Drupal\Component\Gettext

Code

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.