interface PoMetadataInterface in Localization update 7.2
Methods required for both reader and writer implementations.
Hierarchy
- interface \PoMetadataInterface
Expanded class hierarchy of PoMetadataInterface
All classes that implement PoMetadataInterface
See also
Drupal\Component\Gettext\PoReaderInterface
Drupal\Component\Gettext\PoWriterInterface
File
- includes/
gettext/ PoMetadataInterface.php, line 14 - Definition of Drupal\Component\Gettext\PoMetadataInterface.
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 PoHeader $header
* Header object representing metadata in a PO header.
*/
public function setHeader(PoHeader $header);
/**
* Get header metadata.
*
* @return PoHeader $header
* Header instance representing metadata in a PO header.
*/
public function getHeader();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PoMetadataInterface:: |
public | function | Get header metadata. | 5 |
PoMetadataInterface:: |
public | function | Get language code. | 5 |
PoMetadataInterface:: |
public | function | Set header metadata. | 5 |
PoMetadataInterface:: |
public | function | Set language code. | 5 |