function AttachedAssets::setAlreadyLoadedLibraries

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/AttachedAssets.php \Drupal\Core\Asset\AttachedAssets::setAlreadyLoadedLibraries()
  2. 10 core/lib/Drupal/Core/Asset/AttachedAssets.php \Drupal\Core\Asset\AttachedAssets::setAlreadyLoadedLibraries()
  3. 11.x core/lib/Drupal/Core/Asset/AttachedAssets.php \Drupal\Core\Asset\AttachedAssets::setAlreadyLoadedLibraries()

Overrides AttachedAssetsInterface::setAlreadyLoadedLibraries

File

core/lib/Drupal/Core/Asset/AttachedAssets.php, line 89

Class

AttachedAssets
The default attached assets collection.

Namespace

Drupal\Core\Asset

Code

public function setAlreadyLoadedLibraries(array $libraries) {
    $this->alreadyLoadedLibraries = $libraries;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.