function PoReaderInterface::readItem

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

Reads and returns a PoItem (source/translation pair).

Return value

\Drupal\Component\Gettext\PoItem Wrapper for item data instance.

2 methods override PoReaderInterface::readItem()
PoDatabaseReader::readItem in core/modules/locale/src/PoDatabaseReader.php
Reads and returns a PoItem (source/translation pair).
PoStreamReader::readItem in core/lib/Drupal/Component/Gettext/PoStreamReader.php
Reads and returns a PoItem (source/translation pair).

File

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

Class

PoReaderInterface
Shared interface definition for all Gettext PO Readers.

Namespace

Drupal\Component\Gettext

Code

public function readItem();

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