1.20.x stream_wrappers.inc public BackdropTemporaryStreamWrapper::getExternalUrl()

Overrides getExternalUrl().

Overrides BackdropStreamWrapperInterface::getExternalUrl

File

includes/stream_wrappers.inc, line 985
Backdrop stream wrapper interface.

Class

BackdropTemporaryStreamWrapper
Backdrop temporary (temporary://) stream wrapper class.

Code

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