private function PoDatabaseReader::readString

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

1 call to PoDatabaseReader::readString()
PoDatabaseReader::readItem in drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseReader.php
Implements Drupal\Component\Gettext\PoReaderInterface::readItem().

File

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

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);
}