function ExtensionStreamBase::getExternalUrl
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ ExtensionStreamBase.php, line 78
Class
- ExtensionStreamBase
- Defines a base stream wrapper implementation for extension assets.
Namespace
Drupal\Core\StreamWrapperCode
public function getExternalUrl() : string {
$dir = $this->getDirectoryPath();
return \Drupal::service(RequestContext::class)->getCompleteBaseUrl() . rtrim("/{$dir}/" . $this->getTarget(), '/');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.