function PoMemoryWriter::writeItems
Same name in other branches
- 9 core/lib/Drupal/Component/Gettext/PoMemoryWriter.php \Drupal\Component\Gettext\PoMemoryWriter::writeItems()
- 10 core/lib/Drupal/Component/Gettext/PoMemoryWriter.php \Drupal\Component\Gettext\PoMemoryWriter::writeItems()
- 11.x core/lib/Drupal/Component/Gettext/PoMemoryWriter.php \Drupal\Component\Gettext\PoMemoryWriter::writeItems()
Overrides PoWriterInterface::writeItems
File
-
core/
lib/ Drupal/ Component/ Gettext/ PoMemoryWriter.php, line 39
Class
- PoMemoryWriter
- Defines a Gettext PO memory writer, to be used by the installer.
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.