You are here

public function PoDatabaseReader::setHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setHeader()

Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().

Throws

Exception Always, because you cannot set the PO header of a reader.

Overrides PoMetadataInterface::setHeader

File

core/modules/locale/src/PoDatabaseReader.php, line 102
Contains \Drupal\locale\PoDatabaseReader.

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

public function setHeader(PoHeader $header) {
  throw new \Exception('You cannot set the PO header in a reader.');
}