private function PoDatabaseReader::readString in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::readString()
- 9 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\localeCode
private function readString() {
if (!isset($this->result)) {
$this->result = $this
->loadStrings();
}
return array_shift($this->result);
}