Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Iconify Field

241 sites Security covered
View on drupal.org

This module provides a user-friendly way to add SVG icons from the Iconify project to your Drupal content. It offers a new field type for selecting icons and a CKEditor 5 plugin for content editors, while also providing developers with tools for custom integrations.

The Iconify Field module for Drupal allows you to easily add SVG icons to any type of content, using the amazing Iconify project.

Components

  • Field integration with a user-friendly icon picker
  • A CKEditor 5 plugin to easily let content editors add icons
  • An API to allow developers to integrate any feature in their own custom modules

What does it do?

In short, it provides a new field type for selecting icons from any collection of Iconify icons. The resulting icon or icons will be rendered in SVG form on the frontend, without the need for any client-side JavaScript.

Additionally, a separate module is provided to provide a CKEditor 5 plugin. This makes it easy for content editors to include icons in their content.

Can it do anything else?

It can! Of course, just providing a field type for one or more icons can quickly become very limiting. That is why some helpers are provided alongside the module.

Twig function

You might run into situations where you have custom functionality, and want to embed a single icon in a Twig template. That's where the iconify_field Twig function comes in. Simply provide the collection and name of the icon, and the correct icon will be rendered.

For example:

{{ iconify_field('mdi:account') }}

The icon picker is pretty nice, can I use it in my custom form?

Be my guest! It's quite simple to include, since a custom form element is provided with this module.

Here's a code snippet to get you started:

$form['icon'] = [
  '#type' => 'iconify_field',
  '#default_collection' => 'mdi', // Can also be NULL, in which case the first collection will be pre-selected
  '#collections' => [ // Can also be empty, in which case all collections are allowed
    'mdi',
    'tabler',
  ],
  '#default_value' => 'mdi:account',
];

Activity

Total releases
3
First release
Jun 2025
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.2.1 Stable Jun 9, 2026
1.2.0 Stable Aug 9, 2025
1.1.6 Stable Jun 24, 2025