function PoDatabaseReader::readItem
Same name in other branches
- 9 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readItem()
- 10 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readItem()
- 11.x core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readItem()
Overrides PoReaderInterface::readItem
File
-
core/
modules/ locale/ src/ PoDatabaseReader.php, line 162
Class
- PoDatabaseReader
- Gettext PO reader working with the locale module database.
Namespace
Drupal\localeCode
public function readItem() {
if ($string = $this->readString()) {
$values = (array) $string;
$po_item = new PoItem();
$po_item->setFromArray($values);
return $po_item;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.