function 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

drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseReader.php, line 104
Definition of Drupal\locale\PoDatabaseReader.

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

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