public function Asset::getUrl in Mini site 8
Get asset URL.
Return value
string The asset URL as public relative URL or an alias.
Overrides AssetInterface::getUrl
File
- src/
Asset.php, line 377
Class
- Asset
- Class Asset.
Namespace
Drupal\minisiteCode
public function getUrl() {
$alias = $this
->getAlias();
return !empty($alias) ? $alias : $this->urlBag
->getUrl();
}