Problem/Motivation

We are encountering performance issues when loading all icon packs from Iconify as a provider. This is due to how the UI Icons module processes and generates icons in bulk. To address this, we have implemented a settings form that allows users to selectively enable specific icon collections for the provider, helping to reduce the load and improve performance.

This is something that should be handle in UI Icons, but we can keep this as temporary solution.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gxleano created an issue. See original summary.

gxleano’s picture

Status: Active » Needs review

mogtofu33 made their first commit to this issue’s fork.

mogtofu33’s picture

Little changes with ui_icons beta2 about the name of the hook (we changed `ui_icons` to `icon` to ease the core merge we hope for).
So when hopefully it goes core you will not have to change anything.

Second change is about adding processDefinition(), because in the class DefaultPluginManager, method alterDefinitions() run after processDefinition(), and we use the process to call the extractor for the list of icons discovered. So because you add a definition you need to have the process step added.

gxleano’s picture

Status: Needs review » Fixed
Related issues: +#3471494: Add an icon management API

  • gxleano committed f8665ac0 on 1.0.x
    Issue #3480854 by gxleano: Add settings form to allow collections and...

  • gxleano committed c2ee1ab2 on 1.0.x
    Issue #3480854 by gxleano: Fix Icon management API compatibility
    

  • gxleano committed dd3acc8c on 1.0.x
    Issue #3480854 by gxleano: Fix Icon management API compatibility
    

  • gxleano committed f448d34b on 1.0.x
    Issue #3480854 by gxleano: Fix Icon management API compatibility
    

  • gxleano committed 4fffb5e3 on 1.0.x
    Issue #3480854 by gxleano: Remove UI Icons dependencies
    

  • gxleano committed 3cecba26 on 1.0.x
    Issue #3480854 by gxleano: Update icon_pack_name to use lowercase and...

  • gxleano committed ee534fd2 on 1.0.x
    Issue #3480854 by gxleano: Add clear cache method in form submit
    

  • gxleano committed ccc40985 on 1.0.x
    Issue #3480854 by gxleano: Add settings form to allow collections and...
gxleano’s picture

Status: Fixed » Closed (fixed)