interface PoReaderInterface

Shared interface definition for all Gettext PO Readers.

Hierarchy

Expanded class hierarchy of PoReaderInterface

All classes that implement PoReaderInterface

4 files declare their use of PoReaderInterface
PoDatabaseReader.php in drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseReader.php
Definition of Drupal\locale\PoDatabaseReader.
PoDatabaseWriter.php in drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php
Definition of Drupal\locale\PoDatabaseWriter.
PoStreamReader.php in drupal/core/lib/Drupal/Component/Gettext/PoStreamReader.php
Definition of Drupal\Component\Gettext\PoStreamReader.
PoStreamWriter.php in drupal/core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Definition of Drupal\Component\Gettext\PoStreamWriter.

File

drupal/core/lib/Drupal/Component/Gettext/PoReaderInterface.php, line 15
Definition of Drupal\Component\Gettext\PoReaderInterface.

Namespace

Drupal\Component\Gettext
View source
interface PoReaderInterface extends PoMetadataInterface {

  /**
   * Reads and returns a PoItem (source/translation pair).
   *
   * @return Drupal\Component\Gettext\PoItem
   *   Wrapper for item data instance.
   */
  function readItem();

}

Members

Namesort descending Modifiers Type Description Overrides
PoMetadataInterface::getHeader function Get header metadata. 5
PoMetadataInterface::getLangcode function Get language code. 5
PoMetadataInterface::setHeader function Set header metadata. 5
PoMetadataInterface::setLangcode function Set language code. 5
PoReaderInterface::readItem function Reads and returns a PoItem (source/translation pair). 2