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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

Wim Leers’s picture

Status: Active » Needs review
FileSize
1.68 KB

I manually tested this and it works fine, but it would ideally be approved by someone very familiar with Classy.

Wim Leers’s picture

Title: Remove classy_library_info_alter() in favor of libraries-extend » Remove (classy|seven)_library_info_alter() in favor of libraries-extend
Component: Classy theme » Seven theme
FileSize
3.82 KB
2.19 KB

While at it, I figured we might as well do the same for Seven as well. Then This then also sets the right example for contrib themes is completely true.

Fabianx’s picture

Assigned: Unassigned » LewisNyman
Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs subsystem maintainer review

RTBC - looks great to me, assigning to LewisNyman for sign-off on seven changes.

alexpott’s picture

Assigned: LewisNyman » Unassigned
Status: Reviewed & tested by the community » Fixed

I think it is great that the core themes use libraries-override and libraries-extend and show other themes the way to go. Committed 2d1f427 and pushed to 8.0.x. Thanks!

  • alexpott committed 2d1f427 on 8.0.x
    Issue #2580255 by Wim Leers: Remove (classy|seven)_library_info_alter()...
LewisNyman’s picture

I confirm that the files are being loaded correctly. RTBC++

Wim Leers’s picture

Whew, thanks Lewis :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.