Hello,
Thanks for this nice module I have happily met in some projects.
There is currently a core issue you may be interested in: ✨ Add an icon management API Active
With an API containing:
iconpack
plugin type with its plugin managerextractor
plugin type with its plugin manager, its PHP attribute notation & an icon finder serviceicon()
Twig function & icon
render element >> Look similar to your ex_icon
theme hook and ex_icon()
Twig functionpath
, svg
& svg_sprite
extractors >> the last one has a similar purpose than your automatic discovery on module_or_theme/dist/icons.svg
We would be interested about your opinion on this MR. Would you consider to leverage such an API for the next version of the ex_icons
module?
Leveraging this API, ex_icons
can still propose:
ex_icon_select
form elementWhat do you think about this?
Active
1.0
Code