public function Asset::setAlias in Mini site 8
Set an alias for an asset.
Parameters
string $alias: Alias to access asset as relative or absolute path.
Overrides AssetInterface::setAlias
File
- src/
Asset.php, line 393
Class
- Asset
- Class Asset.
Namespace
Drupal\minisiteCode
public function setAlias($alias) {
$this->urlBag
->setAlias($alias);
}