Problem/Motivation
Prior to 11.1, hook_library_info_build was unintentionally usable by themes to define libraries dynamically. The specific change is apparently https://www.drupal.org/node/3442349. See https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21... for documentation showing only Modules were intended to use this hook. Currently Adaptivetheme Subthemes generated by AT Tools starterkit use hook_library_info_build() to define the theme's layout and extension libraries dynamically. Upon upgrading to Drupal 11.1, these hooks will no longer be called and all dynamic libraries for layout/extensions will fail to be defined.
Steps to reproduce
Upgrade site using any adaptivetheme subtheme to Drupal 11.1.
Proposed resolution
Reroll our implementation of hook_library_info_build to use hook_library_info_alter.
Comments
Comment #2
redeight commentedUnfortunately, this change will likely need to be rolled manually by everyone currently using any subtheme generated prior to us fixing this since those subthemes will use the incorrect hook.
Comment #3
redeight commentedFor those looking for a quick fix using a generated subtheme:
function HOOK_library_info_build() {withfunction HOOK_library_info_alter(&$libraries, $extension) {.$libraries = [];return $libraries;That should get your layout and extension libraries working again.
Comment #4
arturopanettaThanks @redeight I fixed boostrap_italia theme with your solution https://www.drupal.org/project/bootstrap_italia/issues/3501035