function PoWriterInterface::writeItem

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

Writes the given item.

Parameters

PoItem $item: One specific item to write.

3 methods override PoWriterInterface::writeItem()
PoDatabaseWriter::writeItem in core/modules/locale/src/PoDatabaseWriter.php
Writes the given item.
PoMemoryWriter::writeItem in core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
Writes the given item.
PoStreamWriter::writeItem in core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Writes the given item.

File

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

Class

PoWriterInterface
Shared interface definition for all Gettext PO Writers.

Namespace

Drupal\Component\Gettext

Code

public function writeItem(PoItem $item);

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