Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2497667: Add libraries-extend to themes' *.info.yml introduced libraries-extend
. Which means we can now get rid of all the complexity in classy_library_info_alter()
and use the much simpler, fully declarative libraries-extend
. This then also sets the right example for contrib themes
There even already is a @todo
for this.
Proposed resolution
Use libraries-extend
.
Remaining tasks
Review.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | classy_seven_libraries-extend_2580255-3.patch | 3.82 KB | Wim Leers |
Comments
Comment #2
Wim LeersI manually tested this and it works fine, but it would ideally be approved by someone very familiar with Classy.
Comment #3
Wim LeersWhile at it, I figured we might as well do the same for Seven as well. Then
is completely true.Comment #4
Fabianx CreditAttribution: Fabianx as a volunteer commentedRTBC - looks great to me, assigning to LewisNyman for sign-off on seven changes.
Comment #5
alexpottI think it is great that the core themes use
libraries-override
andlibraries-extend
and show other themes the way to go. Committed 2d1f427 and pushed to 8.0.x. Thanks!Comment #7
LewisNymanI confirm that the files are being loaded correctly. RTBC++
Comment #8
Wim LeersWhew, thanks Lewis :)