public function PoMemoryWriter::writeItems

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

Overrides PoWriterInterface::writeItems

File

drupal/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 48
Definition of Drupal\Component\Gettext\PoMemoryWriter.

Class

PoMemoryWriter
Defines a Gettext PO memory writer, to be used by the installer.

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);
  }
}