interface PoMetadataInterface

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\PoMetadataInterface
  2. 10 core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\PoMetadataInterface
  3. 11.x core/lib/Drupal/Component/Gettext/PoMetadataInterface.php \Drupal\Component\Gettext\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

File

core/lib/Drupal/Component/Gettext/PoMetadataInterface.php, line 11

Namespace

Drupal\Component\Gettext
View source
interface PoMetadataInterface {
    
    /**
     * Set language code.
     *
     * @param string $langcode
     *   Language code string.
     */
    public function setLangcode($langcode);
    
    /**
     * Get language code.
     *
     * @return string
     *   Language code string.
     */
    public function getLangcode();
    
    /**
     * Set header metadata.
     *
     * @param \Drupal\Component\Gettext\PoHeader $header
     *   Header object representing metadata in a PO header.
     */
    public function setHeader(PoHeader $header);
    
    /**
     * Get header metadata.
     *
     * @return \Drupal\Component\Gettext\PoHeader
     *   Header instance representing metadata in a PO header.
     */
    public function getHeader();

}

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.