public function PoStreamWriter::close in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Gettext/PoStreamWriter.php \Drupal\Component\Gettext\PoStreamWriter::close()
Implements Drupal\Component\Gettext\PoStreamInterface::close().
Throws
Exception If the stream is not open.
Overrides PoStreamInterface::close
File
- lib/
Drupal/ Component/ Gettext/ PoStreamWriter.php, line 92 - Contains \Drupal\Component\Gettext\PoStreamWriter.
Class
- PoStreamWriter
- Defines a Gettext PO stream writer.
Namespace
Drupal\Component\GettextCode
public function close() {
if ($this->_fd) {
fclose($this->_fd);
}
else {
throw new Exception('Cannot close stream that is not open.');
}
}