function AttachedAssetsInterface::setAlreadyLoadedLibraries

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setAlreadyLoadedLibraries()
  2. 8.9.x core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setAlreadyLoadedLibraries()
  3. 10 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::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

1 method overrides AttachedAssetsInterface::setAlreadyLoadedLibraries()
AttachedAssets::setAlreadyLoadedLibraries in core/lib/Drupal/Core/Asset/AttachedAssets.php
Sets the asset libraries that the current request marked as already loaded.

File

core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 72

Class

AttachedAssetsInterface
The attached assets collection for the current response.

Namespace

Drupal\Core\Asset

Code

public function setAlreadyLoadedLibraries(array $libraries);

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