function PoDatabaseReader::readString

Same name and namespace in other branches
  1. 10 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readString()
  2. 11.x core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readString()
  3. 8.9.x core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readString()

Get the database result resource for the given language and options.

File

core/modules/locale/src/PoDatabaseReader.php, line 152

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

private function readString() {
  if (!isset($this->result)) {
    $this->result = $this->loadStrings();
  }
  return array_shift($this->result);
}

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