interface PoMetadataInterface

Methods required for both reader and writer implementations.

Hierarchy

Expanded class hierarchy of PoMetadataInterface

All classes that implement PoMetadataInterface

See also

Drupal\Component\Gettext\PoReaderInterface

Drupal\Component\Gettext\PoWriterInterface

2 files declare their use of PoMetadataInterface
PoReaderInterface.php in drupal/core/lib/Drupal/Component/Gettext/PoReaderInterface.php
Definition of Drupal\Component\Gettext\PoReaderInterface.
PoWriterInterface.php in drupal/core/lib/Drupal/Component/Gettext/PoWriterInterface.php
Definition of Drupal\Component\Gettext\PoWriterInterface.

File

drupal/core/lib/Drupal/Component/Gettext/PoMetadataInterface.php, line 18
Definition of Drupal\Component\Gettext\PoMetadataInterface.

Namespace

Drupal\Component\Gettext
View source
interface PoMetadataInterface {

  /**
   * Set language code.
   *
   * @param string $langcode
   *   Language code string.
   */
  function setLangcode($langcode);

  /**
   * Get language code.
   *
   * @return string
   *   Language code string.
   */
  function getLangcode();

  /**
   * Set header metadata.
   *
   * @param Drupal\Component\Gettext\PoHeader $header
   *   Header object representing metadata in a PO header.
   */
  function setHeader(PoHeader $header);

  /**
   * Get header metadata.
   *
   * @return Drupal\Component\Gettext\PoHeader $header
   *   Header instance representing metadata in a PO header.
   */
  function getHeader();

}

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