By daffie on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.0
Issue links:
Description:
The function system_sort_modules_by_info_name() is deprecated in 9.3.0. The replacement for this function is Drupal\Core\Extension\ExtensionList::sortByName(). The function and it replacement work exactly the same. The method works not only for module, but also for other extensions likes themes.
Before: uasort($modules, 'system_sort_by_info_name');.
After: uasort($modules, [ModuleExtensionList::class, 'sortByName']);
Impacts:
Module developers
Themers