public function PoStreamWriter::setHeader in Drupal 9
Same name and namespace in other branches
- 8 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\GettextCode
public function setHeader(PoHeader $header) {
$this->header = $header;
}