Implements Drupal\Core\StreamWrapper\StreamWrapperInterface::getExternalUrl().
string Returns the HTML URI of a public file.
Overrides StreamWrapperInterface::getExternalUrl
function getExternalUrl() {
$path = str_replace('\\', '/', $this
->getTarget());
return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . drupal_encode_path($path);
}