public function PoStreamWriter::writeItems

Implements Drupal\Component\Gettext\PoWriterInterface::writeItems().

Overrides PoWriterInterface::writeItems

File

drupal/core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 141
Definition of Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function writeItems(PoReaderInterface $reader, $count = -1) {
  $forever = $count == -1;
  while (($count-- > 0 || $forever) && ($item = $reader
    ->readItem())) {
    $this
      ->writeItem($item);
  }
}