function PoStreamWriter::getHeader

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::getHeader()
  2. 10 core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::getHeader()
  3. 11.x core/lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::getHeader()

Gets the PO header of the current stream.

Return value

\Drupal\Component\Gettext\PoHeader The Gettext PO header.

Overrides PoMetadataInterface::getHeader

File

core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 44

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function getHeader() {
    return $this->header;
}

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