function PoDatabaseReader::setHeader
Same name in other branches
- 9 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setHeader()
- 8.9.x core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setHeader()
- 11.x 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 97
Class
- PoDatabaseReader
- Gettext PO reader working with the locale module database.
Namespace
Drupal\localeCode
public function setHeader(PoHeader $header) {
throw new \Exception('You cannot set the PO header in a reader.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.