Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Config entity icon

2 sites No security coverage
View on drupal.org

This module adds an icon picker to configuration entity forms, allowing you to select and store an icon for entity types like content types and taxonomies. It works with various icon packs and stores the chosen icon as a setting with the entity, eliminating the need for separate modules for each entity type.

Adds an icon picker to the edit form of any Drupal config entity — node types, taxonomy vocabularies, menus, media types, custom config entities — and stores the chosen icon as a third-party setting on the entity itself.

Built on top of Drupal core's Icon API (11.1+) via the contributed UI Icons module, so any registered icon pack works out of the box: Lucide, Bootstrap Icons, Font Awesome, Iconify, custom SVG packs — pick from whichever you've installed.

Replaces the need for per-entity-type icon modules (node_type_icon, taxonomy_term_icon, …) with a single, generic mechanism that works for every existing config entity type and every future one without code changes.

Features

  • Any config entity — admin picks which entity types get the picker via a settings page
  • Any icon pack — works with all Icon API providers (Lucide, Bootstrap Icons, Font Awesome, custom packs)
  • Third-party setting storage — no schema changes, no new fields, icon travels with the entity's config
  • Lightweight resolver serviceconfig_entity_icon.resolver for reading + rendering icons from PHP
  • Auto-placement in existing forms — integrates with the additional_settings vertical tab when present
  • Fully OOP — modern PHP 8.3+, no procedural hooks, attribute-based registration

Requirements

Usage

After installation:

  1. Visit Administration » Configuration » User interface » Config Entity Icon
  2. Tick the entity types you want to receive an icon picker (e.g. Content type, Taxonomy vocabulary, Menu)
  3. Edit any entity of an enabled type — an Icon picker appears on the form
  4. Render the chosen icon in any template or PHP via the config_entity_icon.resolver service

Other icon-related modules

License

  • Module: GPL-2.0-or-later

For installation, usage, and technical details see README.md.

Activity

Tracked releases
2
Tracked since
May 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
0.0.1 Stable May 19, 2026
0.x-dev Dev May 19, 2026