Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Iconify Field

208 sites Security covered Drupal 11 · not 10
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',
];

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Nov 2024
Latest release
2 months ago
Releases (12 mo)
1 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.1 Stable 11 Jun 9, 2026
1.2.0 Stable 11 Aug 9, 2025
1.1.6 Stable 10–11 Jun 24, 2025
1.1.5 Stable 10–11 Jan 3, 2025
1.1.4 Stable 10–11 Nov 10, 2024