function DrupalPrivateStreamWrapper::getExternalUrl
Overrides getExternalUrl().
Return the HTML URI of a private file.
Overrides DrupalStreamWrapperInterface::getExternalUrl
Archivo
- drupal-7.x/
includes/ stream_wrappers.inc, line 805 - Drupal stream wrapper interface.
Class
- DrupalPrivateStreamWrapper
- Drupal private (private://) stream wrapper class.
Código
function getExternalUrl() {
$path = str_replace('\\', '/', $this->getTarget());
return url('system/files/' . $path, array('absolute' => TRUE));
}