You are here

protected function FileUrlGenerator::getBasePath in CDN 8.3

See also

\Symfony\Component\HttpFoundation\Request::getBasePath()

1 call to FileUrlGenerator::getBasePath()
FileUrlGenerator::generate in src/File/FileUrlGenerator.php
Generates a CDN file URL for local files that are mapped to a CDN.

File

src/File/FileUrlGenerator.php, line 221

Class

FileUrlGenerator
Generates CDN file URLs.

Namespace

Drupal\cdn\File

Code

protected function getBasePath() : string {
  return $this->requestStack
    ->getCurrentRequest()
    ->getBasePath();
}