
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...
Enter a descriptive title (above) relating to function hook_library_info_alter, then describe the problem you have found:
> array $libraries: An associative array of libraries registered by $extension. Keyed by internal library name and passed by reference.
The phrase 'internal library name' is not used anywhere else in Drupal and is not entirely clear.
This should say 'without the extension prefix'.
Issue fork drupal-3375497
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3375497-docs-have-unclear-term
changes, plain diff MR !4754
Comments
Comment #4
yujiman85 CreditAttribution: yujiman85 at Zivtech commentedI tried to add some clarity as to how libraries are referenced in the code as well as provide an example.
Comment #5
smustgrave CreditAttribution: smustgrave at Mobomo commentedSeems like a good update.
Comment #6
xjmNice improvement!
It was still not immediately obvious to me how the library name was connected to the example when I first read the documentation out of context, so I suggested a slight improvement.
Thanks!
Comment #7
xjmSaving issue credits.
Comment #8
yujiman85 CreditAttribution: yujiman85 at Zivtech commentedI agree with #6, that is a bit clearer so I updated the MR. Thank you. Is that clear enough without having to state that the libraries are registered by $extension? I guess "Can either be 'core' or the machine name of the extension that registered the libraries." kinda clears that up.
Comment #9
xjmCS failure (wish it would mark the issue NW):
I also think we should keep the first sentence about it being an associative array. It's not a library; it's an array of libraries. Right?
Comment #10
yujiman85 CreditAttribution: yujiman85 at Zivtech commentedGave it some more thought and came up with another revision.
Comment #11
smustgrave CreditAttribution: smustgrave at Mobomo commentedThink this is good for committer review again.
Comment #14
lauriiiCommitted 01747e1 and pushed to 11.x. Also cherry-picked to 10.1.x as a docs fix. Thanks!