Compatibility with the Icon API proposal for Core

Created on 21 October 2024, about 2 months ago

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 manager
  • extractor plugin type with its plugin manager, its PHP attribute notation & an icon finder service
  • icon() Twig function & icon render element >> Look similar to your ex_icon theme hook and ex_icon() Twig function
  • path, 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:

  • the ex_icon_select form element
  • the integration with the field API (type, formatter, widget)
  • maybe more...

What do you think about this?

🌱 Plan
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France pdureau Paris

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

Comments & Activities

Production build 0.71.5 2024