public function PoStreamWriter::open

Implements Drupal\Component\Gettext\PoStreamInterface::open().

Overrides PoStreamInterface::open

File

drupal/core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 85
Definition of Drupal\Component\Gettext\PoStreamWriter.

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

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();
}