function PoMetadataInterface::setHeader

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

2 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().

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.