You are here

public function PoStreamWriter::setHeader in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

lib/Drupal/Component/Gettext/PoStreamWriter.php, line 52
Contains \Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

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