Install
Works with Drupal: ^10.3 || ^11.0Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
New release with separated API, lot of fixes and performance improvments.
Upgrade from beta2 to beta3
Since beta3, Icon API has been moved to Drupal Core 11.1.
If you are still in Drupal 10.3 or Drupal 11.0, you can try those steps to upgrade from beta2 to beta3:
- While in beta2, create an empty
ui_icons_backportmodule outsideui_icons, and activate it - Update
ui_iconsto beta3 - Delete the empty
ui_icons_backportand flush the cache - (if you meet an
AssertionError, tryTRUNCATE cache_container)
Contributors (7)
mogtofu33, g4mbini, grimreaper, just_like_good_vibes, pdureau, smustgrave, tomsaw
Changelog
Issues: 19 issues resolved.
Changes since 1.0.0-beta2:
Breaking changes
Move the API to a specific module ui_icons_backport to match the core merged API, see #3471494: Add an icon management API.
This mean use of namespaces is breaking from beta2, and this new module must be enabled. Best is to fully remove and reinstall if possible.
Some key naming changes for consistency everywhere, this impact:
- Config storage for icon change of key: icon => icon_id
- When using Twig function with icon object, the keys change from
{{ icon(icon.icon_pack, icon.icon, icon.settings) }}to</code>{{ icon(icon.icon_pack, icon.icon_id, icon.settings) }} - UI Patterns component change of key: icon => icon_id
Bug
- #3487207 by mogtofu33: Extractor font and iconify update, library update, isolate search
- #3485067 by steveoriol, g4mbini, mogtofu33, grimreaper: Icons on menu do not works
- #3489123 by grimreaper, mogtofu33: Icon not found when rendered from renderable array
- #3489673 by grimreaper: regression with ui_icons_menu
Feature
- #3482495 by grimreaper, mogtofu33: Linkit with attributes with icon
- #3487275 by mogtofu33: Form element autocomplete search
- #3484282 by grimreaper, mogtofu33: Media source plugin
- #3488789 by pdureau, just_like_good_vibes, mogtofu33: Use #allowed_icon_pack with UI Patterns 2
Task
- #3481526 by pdureau: UI Patterns integration: fix warning
- #3484392 by smustgrave, pdureau: ui_icons_patterns, from machine_name to string
- #3484351 by mogtofu33: Backport Icon API
- #3488557 by mogtofu33: Gitlab CI issue on some tests and phpmd
- #3488558 by just_like_good_vibes, grimreaper, mogtofu33: Add a composer.json file
- #3491590 by mogtofu33: CI job test coverage
- #3491700 by just_like_good_vibes, mogtofu33: Add new UI patterns source for fields
Support
- #3480422 by tomsaw: Improve css in library view by using grid auto-fill
Misc
- chore: add a common search service with cache
- chore: add cache to library, minor refactor
- chore: add an async preview for icon picker
- docs: update, add new modules, remove API documentation