You are here

public function AttachedAssets::setAlreadyLoadedLibraries in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Asset/AttachedAssets.php \Drupal\Core\Asset\AttachedAssets::setAlreadyLoadedLibraries()

Sets the asset libraries that the current request marked as already loaded.

Parameters

string[] $libraries: The set of already loaded libraries.

Return value

$this

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;
}