Issue #3375497 by Yujiman85, xjm, joachim: Unclear term 'internal library name' in theme API documentation

merge-requests/4668/merge
Lauri Eskola 2023-09-27 19:23:12 +03:00
parent 9059bd722b
commit 01747e1c73
No known key found for this signature in database
GPG Key ID: 382FC0F5B0DF53F8
1 changed files with 8 additions and 2 deletions

View File

@ -1012,8 +1012,14 @@ function hook_js_settings_alter(array &$settings, \Drupal\Core\Asset\AttachedAss
* and themes that may be using the library.
*
* @param array $libraries
* An associative array of libraries registered by $extension. Keyed by
* internal library name and passed by reference.
* An associative array of libraries, passed by reference. The array key
* for any particular library will be the name registered in *.libraries.yml.
* In the example below, the array key would be $libraries['foo'].
* @code
* foo:
* js:
* .......
* @endcode
* @param string $extension
* Can either be 'core' or the machine name of the extension that registered
* the libraries.