public function PoStreamWriter::writeItem

public PoStreamWriter::writeItem(PoItem $item)

Writes the given item.

Parameters

PoItem $item: One specific item to write.

Overrides PoWriterInterface::writeItem

File

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

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Gettext!PoStreamWriter.php/function/PoStreamWriter::writeItem/8.1.x