function AttachedAssetsInterface::setLibraries

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

1 method overrides AttachedAssetsInterface::setLibraries()
AttachedAssets::setLibraries in core/lib/Drupal/Core/Asset/AttachedAssets.php
Sets the asset libraries attached to the current response.

File

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

Class

AttachedAssetsInterface
The attached assets collection for the current response.

Namespace

Drupal\Core\Asset

Code

public function setLibraries(array $libraries);

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