public function DrupalTemporaryStreamWrapper::getExternalUrl in Drupal 7
Overrides getExternalUrl().
Overrides DrupalStreamWrapperInterface::getExternalUrl
File
- includes/
stream_wrappers.inc, line 978 - 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,
));
}