PoMetadataInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
  2. 8.9.x core/lib/Drupal/Component/Gettext/PoMetadataInterface.php
  3. 10 core/lib/Drupal/Component/Gettext/PoMetadataInterface.php

Namespace

Drupal\Component\Gettext

File

core/lib/Drupal/Component/Gettext/PoMetadataInterface.php

View source
<?php

namespace Drupal\Component\Gettext;


/**
 * Methods required for both reader and writer implementations.
 *
 * @see \Drupal\Component\Gettext\PoReaderInterface
 * @see \Drupal\Component\Gettext\PoWriterInterface
 */
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();

}

Interfaces

Title Deprecated Summary
PoMetadataInterface Methods required for both reader and writer implementations.

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