You are here

public function Asset::setAliasPrefix in Mini site 8

Set an alias for an asset.

Note that we are setting only allowed part of the asset alias.

Parameters

string $parent_alias: Parent alias as relative or absolute path.

Overrides AssetInterface::setAliasPrefix

File

src/Asset.php, line 400

Class

Asset
Class Asset.

Namespace

Drupal\minisite

Code

public function setAliasPrefix($parent_alias) {
  $this->urlBag
    ->setParentAlias($parent_alias);
}