Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PoStreamWriter.php

function PoStreamWriter::open

Overrides PoStreamInterface::open

File

core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 81

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();
}
RSS feed
Powered by Drupal