How to order icon packs

Created on 22 July 2025, about 2 months ago

I have several icon pack implementations, a couple are general and large, and one is a small set of custom icons. How can I make one of them appear first in the order of display when picking and filtering?

I tried making the icon pack module have a name alpha descending before the other packs, but that didn't work.

I see that in core DefaultPluginManager::findDefinitions, which I think is what fetches the plugin definitions for ui_icons, there is $this->alterDefinitions(&$definitions). Could I use hook_PLUGIN_TYPE_alter to reorder the definitions? What is the PLUGIN_TYPE to use here?

πŸ’¬ Support request
Status

Active

Version

1.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States ransomweaver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024