public function AttachedAssetsInterface::setLibraries in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setLibraries()
- 9 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::setLibraries()
Sets the asset libraries attached to the current response.
Parameters
string[] $libraries: A list of libraries, in the order they should be loaded.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Asset/ AttachedAssetsInterface.php, line 38
Class
- AttachedAssetsInterface
- The attached assets collection for the current response.
Namespace
Drupal\Core\AssetCode
public function setLibraries(array $libraries);