function DrupalTemporaryStreamWrapper::getExternalUrl

Overrides getExternalUrl().

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

includes/stream_wrappers.inc, line 1005

Class

DrupalTemporaryStreamWrapper
Drupal temporary (temporary://) stream wrapper class.

Code

public function getExternalUrl() {
    $path = str_replace('\\', '/', $this->getTarget());
    return url('system/temporary/' . $path, array(
        'absolute' => TRUE,
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.