public function Asset::getAlias in Mini site 8
Get asset alias.
In most cases, getUrl() should be used unless an alias should be explicitly retrieved.
Return value
string The full alias of the asset as a relative URL.
Overrides AssetInterface::getAlias
2 calls to Asset::getAlias()
- Asset::getUrl in src/
Asset.php - Get asset URL.
- Asset::save in src/
Asset.php - Save asset to the database.
File
- src/
Asset.php, line 386
Class
- Asset
- Class Asset.
Namespace
Drupal\minisiteCode
public function getAlias() {
return $this->urlBag
->getAlias();
}