function PoStreamWriter::writeItems
Same name and namespace in other branches
- 11.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItems()
File
-
core/
lib/ Drupal/ Component/ Gettext/ PoStreamWriter.php, line 137
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Namespace
Drupal\Component\GettextCode
public function writeItems(PoReaderInterface $reader, $count = -1) {
$forever = $count == -1;
while (($count-- > 0 || $forever) && $item = $reader->readItem()) {
$this->writeItem($item);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.