From 01747e1c73ac25ce53cd0f7853d3b3e8675a7cff Mon Sep 17 00:00:00 2001 From: Lauri Eskola Date: Wed, 27 Sep 2023 19:23:12 +0300 Subject: [PATCH] Issue #3375497 by Yujiman85, xjm, joachim: Unclear term 'internal library name' in theme API documentation --- core/lib/Drupal/Core/Render/theme.api.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php index 5c0f0d9cb88..1ba64ef8a44 100644 --- a/core/lib/Drupal/Core/Render/theme.api.php +++ b/core/lib/Drupal/Core/Render/theme.api.php @@ -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.