You are here

public function PoDatabaseReader::getHeader in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::getHeader()

Get header metadata.

Return value

\Drupal\Component\Gettext\PoHeader Header instance representing metadata in a PO header.

Overrides PoMetadataInterface::getHeader

File

core/modules/locale/src/PoDatabaseReader.php, line 87

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

public function getHeader() {
  return new PoHeader($this
    ->getLangcode());
}