else { // If no language, we don't need any of the target fields.
return \Drupal::
service('locale.storage'
)->
getStrings($conditions);
} } /**
* Get the database result resource for the given language and options.
*/
private function readString() { if (!
isset($this->result
)) { $this->result =
$this->
loadStrings();
} return array_shift($this->result
);
} /**
* {@inheritdoc}
*/
public function readItem() { if ($string =
$this->
readString()) { $values =
(array) $string;
$po_item =
new PoItem();