function PoMetadataInterface::setHeader

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

Set header metadata.

Parameters

\Drupal\Component\Gettext\PoHeader $header: Header object representing metadata in a PO header.

5 methods override PoMetadataInterface::setHeader()
PoDatabaseReader::setHeader in core/modules/locale/src/PoDatabaseReader.php
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoDatabaseWriter::setHeader in core/modules/locale/src/PoDatabaseWriter.php
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoMemoryWriter::setHeader in core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
Implements Drupal\Component\Gettext\PoMetadataInterface:setHeader().
PoStreamReader::setHeader in core/lib/Drupal/Component/Gettext/PoStreamReader.php
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().
PoStreamWriter::setHeader in core/lib/Drupal/Component/Gettext/PoStreamWriter.php
Set the PO header for the current stream.

File

core/lib/Drupal/Component/Gettext/PoMetadataInterface.php, line 35

Class

PoMetadataInterface
Methods required for both reader and writer implementations.

Namespace

Drupal\Component\Gettext

Code

public function setHeader(PoHeader $header);

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