DrupalPrivateStreamWrapper::getExternalUrl

7 stream_wrappers.inc DrupalPrivateStreamWrapper::getExternalUrl()

Overrides getExternalUrl().

Return the HTML URI of a private file.

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

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

Code

function getExternalUrl() {
  $path = str_replace('\\', '/', $this->getTarget());
  return url('system/files/' . $path, array('absolute' => TRUE));
}
Login or register to post comments