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

Breadcrumb

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

interface PoReaderInterface

Shared interface definition for all Gettext PO Readers.

Hierarchy

  • interface \Drupal\Component\Gettext\PoMetadataInterface
    • interface \Drupal\Component\Gettext\PoReaderInterface extends \Drupal\Component\Gettext\PoMetadataInterface

Expanded class hierarchy of PoReaderInterface

All classes that implement PoReaderInterface

2 files declare their use of PoReaderInterface
PoDatabaseReader.php in core/modules/locale/src/PoDatabaseReader.php
PoDatabaseWriter.php in core/modules/locale/src/PoDatabaseWriter.php

File

core/lib/Drupal/Component/Gettext/PoReaderInterface.php, line 8

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.
     */
    public function readItem();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
PoMetadataInterface::getHeader public function Get header metadata. 5
PoMetadataInterface::getLangcode public function Get language code. 5
PoMetadataInterface::setHeader public function Set header metadata. 5
PoMetadataInterface::setLangcode public function Set language code. 5
PoReaderInterface::readItem public function Reads and returns a PoItem (source/translation pair). 2

API Navigation

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