function PoDatabaseReader::readItem

Implements Drupal\Component\Gettext\PoReaderInterface::readItem().

Overrides PoReaderInterface::readItem

File

drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseReader.php, line 169
Definition of Drupal\locale\PoDatabaseReader.

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

function readItem() {
  if ($string = $this
    ->readString()) {
    $values = (array) $string;
    $poItem = new PoItem();
    $poItem
      ->setFromArray($values);
    return $poItem;
  }
}