function PoWriterInterface::writeItems

Same name in other branches
  1. 9 core/lib/Drupal/Component/Gettext/PoWriterInterface.php \Drupal\Component\Gettext\PoWriterInterface::writeItems()
  2. 8.9.x core/lib/Drupal/Component/Gettext/PoWriterInterface.php \Drupal\Component\Gettext\PoWriterInterface::writeItems()
  3. 11.x core/lib/Drupal/Component/Gettext/PoWriterInterface.php \Drupal\Component\Gettext\PoWriterInterface::writeItems()

Writes all or the given amount of items.

Parameters

PoReaderInterface $reader: Reader to read PoItems from.

$count: Amount of items to read from $reader to write. If -1, all items are read from $reader.

3 methods override PoWriterInterface::writeItems()
PoDatabaseWriter::writeItems in core/modules/locale/src/PoDatabaseWriter.php
Writes all or the given amount of items.
PoMemoryWriter::writeItems in core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
Writes all or the given amount of items.
PoStreamWriter::writeItems in core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Writes all or the given amount of items.

File

core/lib/Drupal/Component/Gettext/PoWriterInterface.php, line 27

Class

PoWriterInterface
Shared interface definition for all Gettext PO Writers.

Namespace

Drupal\Component\Gettext

Code

public function writeItems(PoReaderInterface $reader, $count = -1);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.