Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
asset library system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2015 at 16:10 UTC
Updated:
3 May 2015 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lauriiiComment #3
lauriiiThere was still tests for alter.
Comment #4
lauriiiComment #5
lauriiiComment #6
fabianx commentedRTBC, thanks Laurii!
Comment #7
dawehnerRight this was the runtime hook, let's drop it.
We can remove the module handler and theme manager from the class itself now.
Comment #8
lauriiiGood catch!
Comment #9
fabianx commentedBack to RTBC, changes look good.
Comment #10
dawehnerCan we please cleanup the test to not longer create mock objects for the module handler / theme handler?
Comment #11
xjmAlso, since this is a normal task, let's add a beta evaluation and examine how the change fits during the Drupal 8 beta.
Comment #12
lauriiiComment #13
lauriiiComment #14
fabianx commentedBack to RTBC ...
Comment #17
lauriiiSetting back to RTBC because testbot was a little drunk.
Comment #18
xjmReviewing this.
Comment #19
xjmSo this confused me at first, because the hook did not appear to be marked deprecated -- it just appeared to be undocumented. What actually happened is that #2392717: Remove hook_library_alter() from theme.api.php removed the documentation of the hook... but not the test coverage or the invocation. Oops! So this change is allowed during the beta.
I updated the summary to explain this. (Note that removing deprecated code is not unfrozen; that's only strings, markup, migrate, docs, etc.) I also updated the title of the change record: https://www.drupal.org/node/2391981/revisions/view/8368695/8371373
Now reviewing the patch itself. :)
Comment #20
xjmActually @dawehner has more feedback.
Comment #21
xjmComment #22
dawehnerWe can drop
as well in that test file.
Comment #23
lauriiiFixed the documentation :)
Comment #24
jibranSomewhat related #2472119: Extension installers allow extensions with duplicate names to be enabled.
Comment #25
fabianx commentedTagging
Comment #26
xjmNot really a part of the criticals and performance sprint, so removing that tag. :)
Per #19, this is okay to go in since the hook was already deprecated for removal 8.0.0 and we just missed a bit of the patch previously. Committed and pushed to 8.0.x
Comment #28
wim leersThis should have fixed the performance regression that #2050269: hook_library_info_alter() is not called for themes caused! :)
Comment #29
fabianx commentedWe need a quick follow-up issue to fix the comments:
nit - We forgot to remove this comment, which is no longer true.