public function DrupalTemporaryStreamWrapper::getExternalUrl

7.x stream_wrappers.inc public DrupalTemporaryStreamWrapper::getExternalUrl()

Overrides getExternalUrl().

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

drupal-7.x/includes/stream_wrappers.inc, line 830
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));
}