Problem/Motivation

After upgrade to Drupal 11.1.x the hook hook_library_info_build (docs) don't work.

Rif: https://www.drupal.org/node/3442349

Steps to reproduce

Install theme on Drupal 11.1

Proposed resolution

To do. Suggestions and ideas to solve the issue are welcome.
Thanks @braintec for suggesting this issue https://www.drupal.org/project/at_tool/issues/3516103
Thanks https://www.drupal.org/project/at_tool/issues/3516103#comment-16047441 @redeight for solution

Remaining tasks

Review

User interface changes

---

API changes

---

Data model changes

---

Comments

arturopanetta created an issue. See original summary.

arturopanetta’s picture

Issue summary: View changes
arturopanetta’s picture

Title: Drupal 11.1 breaks theme » Drupal 11.1.x breaks theme
Issue summary: View changes

arturopanetta’s picture

Issue summary: View changes
arturopanetta’s picture

Issue summary: View changes
arturopanetta’s picture

Version: 2.12.0 » 2.13.x-dev
bryanbuchs’s picture

I'm having the same issue in my custom theme after upgrading to D11. In D10 I was using that hook to dynamically generate libraries for all the "components" in a folder.

In D11 `hook_library_info_build` isn't being fired at all.

arturopanetta’s picture

Assigned: Unassigned » arturopanetta
Issue summary: View changes
Status: Active » Needs review
Related issues: +#3516103: Drupal 11.1 removes unintended usage of hook_library_info_build() by themes.
arturopanetta’s picture

Version: 2.13.x-dev » 2.12.4
arturopanetta’s picture

Title: Drupal 11.1.x breaks theme » Drupal >= 11.1.x breaks theme
arturopanetta’s picture

Status: Needs review » Fixed

The issue has been resolved since version 2.17.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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