public function PoStreamWriter::open in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::open()
Open the stream. Set the URI for the stream earlier with setURI().
Overrides PoStreamInterface::open
File
- lib/
Drupal/ Component/ Gettext/ PoStreamWriter.php, line 79 - Contains \Drupal\Component\Gettext\PoStreamWriter.
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Namespace
Drupal\Component\GettextCode
public function open() {
// Open in write mode. Will overwrite the stream if it already exists.
$this->_fd = fopen($this
->getURI(), 'w');
// Write the header at the start.
$this
->writeHeader();
}