function PoStreamWriter::writeItem

Same name in other branches
  1. 9 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItem()
  2. 8.9.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItem()
  3. 10 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItem()

Overrides PoWriterInterface::writeItem

1 call to PoStreamWriter::writeItem()
PoStreamWriter::writeItems in core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Writes all or the given amount of items.

File

core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 130

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function writeItem(PoItem $item) {
    $this->write($item);
}

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