public function PoStreamWriter::writeItem in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::writeItem()
- 10 core/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 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\GettextCode
public function writeItem(PoItem $item) {
$this
->write($item);
}