LibraryDiscovery::$libraryDefinitions

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::libraryDefinitions
  2. 10 core/lib/Drupal/Core/Asset/LibraryDiscovery.php \Drupal\Core\Asset\LibraryDiscovery::libraryDefinitions

The final library definitions, statically cached.

Hooks hook_library_info_alter() and hook_js_settings_alter() allow modules and themes to dynamically alter a library definition (once per request).

Type: array

File

core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 27

Class

LibraryDiscovery
Discovers available asset libraries in Drupal.

Namespace

Drupal\Core\Asset

Code

protected $libraryDefinitions = [];

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