public function AttachedAssets::setAlreadyLoadedLibraries in Drupal 9
Same name and namespace in other branches
- 8 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\AssetCode
public function setAlreadyLoadedLibraries(array $libraries) {
$this->alreadyLoadedLibraries = $libraries;
return $this;
}