You are here

public function AssetContainer::updateAliases in Mini site 8

Update asset aliases.

Parameters

string $alias_prefix: Alias prefix.

File

src/AssetContainer.php, line 67

Class

AssetContainer
Class Asset.

Namespace

Drupal\minisite

Code

public function updateAliases($alias_prefix) {
  foreach ($this->assets as $asset) {
    $asset
      ->setAliasPrefix($alias_prefix);
  }
}