function PoStreamWriter::setHeader

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

Set the PO header for the current stream.

Parameters

\Drupal\Component\Gettext\PoHeader $header: The Gettext PO header to set.

Overrides PoMetadataInterface::setHeader

File

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

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function setHeader(PoHeader $header) {
    $this->header = $header;
}

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