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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). 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.

Extra Field

6,115 sites Security covered
View on drupal.org

This module allows developers to create custom fields that can be added to entity display and form modes. These "extra fields" do not store data but can be used to format existing entity data for display or add custom markup and fields to entity forms.

Provides plugin types to add extra fields in entity view and entity form of fieldable entities.

With ExtraFieldDisplay plugins developers can add custom output to entity view modes. Extra fields are treated like regular fields, site builders can place them in entity view modes, the output is rendered in twig templates. Extra fields typically combine entity data and format it for display. Extra fields do not store data and do not have a field widget.

With ExtraFieldForm plugins (8.x-2.x only) developers can add custom fields or markup to entity forms. Site builders can place them in entity form modes. Extra fields do not store data. Extra form fields can be used as replacement for hook_form_alter.

The included extra_field_example module contains ready to use example plugins. Copy them to your custom module and modify them to your needs.

Know limitation: ExtraFieldForm plugins can not be used for paragraphs, inline entity forms, blocks in layout builder. See details in this issue.

Other modules

Activity

Total releases
3
First release
Apr 2025
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.0.0 Stable Jan 20, 2026
3.0.0-beta2 Pre-release Sep 5, 2025
3.0.0-beta1 Pre-release Apr 3, 2025