PoStreamWriter::getURI

public PoStreamWriter::getURI()

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

Throws

Exception If the URI is not set.

Overrides PoStreamInterface::getURI

File

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

Class

PoStreamWriter
Defines a Gettext PO stream writer.

Namespace

Drupal\Component\Gettext

Code

public function getURI() {
  if (empty($this->_uri)) {
    throw new Exception('No URI set.');
  }
  return $this->_uri;
}
doc_Drupal
2016-10-29 09:34:48
Comments
Leave a Comment

Please login to continue.