PoDatabaseReader::setHeader

public PoDatabaseReader::setHeader(PoHeader $header)

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 97

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.');
}
doc_Drupal
2016-10-29 09:34:24
Comments
Leave a Comment

Please login to continue.