public function PoStreamWriter::close in Localization update 7.2
Implements PoStreamInterface::close().
Throws
Exception If the stream is not open.
Overrides PoStreamInterface::close
File
- includes/
gettext/ PoStreamWriter.php, line 90 - Definition of Drupal\Component\Gettext\PoStreamWriter.
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Code
public function close() {
if ($this->_fd) {
fclose($this->_fd);
}
else {
throw new Exception('Cannot close stream that is not open.');
}
}