Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PoDatabaseReader.php

function PoDatabaseReader::readString

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

1 call to PoDatabaseReader::readString()
PoDatabaseReader::readItem in core/modules/locale/src/PoDatabaseReader.php
Reads and returns a PoItem (source/translation pair).

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal