Overrides getExternalUrl().

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

includes/stream_wrappers.inc, line 1005
Drupal stream wrapper interface.

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,
  ));
}