public function UrlBag::__construct in Mini site 8
UrlBag constructor.
Parameters
string $uri: The URI of the asset file.
string|null $base_url: (optional) The base URL of the site. If not provided, the globally set base URL will be used.
File
- src/
UrlBag.php, line 71
Class
- UrlBag
- Class UrlBag.
Namespace
Drupal\minisiteCode
public function __construct($uri, $base_url = NULL) {
$this->uri = $uri;
$this->baseUrl = $base_url ? $base_url : $this
->getGlobalBaseUrl();
}