You are here

public function PoStreamWriter::writeItem in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItem()

Writes the given item.

Parameters

PoItem $item: One specific item to write.

Overrides PoWriterInterface::writeItem

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

File

lib/Drupal/Component/Gettext/PoStreamWriter.php, line 128
Contains \Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

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