Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Entity Form Mode

174 sites Security covered Drupal 10–11

Part of the Entity ecosystem · 225 projects

View on drupal.org

This module enables the use of different form modes for creating or editing entities like nodes, taxonomy terms, and comments. It automatically maps these form modes to the entity's form route, allowing for customized editing experiences.

This module allows you to use different form modes for adding or editing entities as nodes, taxonomy terms or comments.

It hooks up form modes corresponding to entity form routes. The route to add or edit an entity is called "entity.taxonomy_term.add" or "entity.node.edit_form". All you have to do to display i.e. the edit form in its own form mode is to offer a form mode with the (machine) name "edit_form" (the last part of the route name). This is automatically selected by this module to display the form.

The module is very lightweight. It consists of only 10 lines of code that make the life of Drupal developers so much easier. There are no known issues.

Restrictions:

Works for default entity types as Nodes, Taxonomy Terms, Comments and custom entity types so far the forms are displayed with their own route and the naming convention for entity forms is followed: entity.{entity_type_id}.{form_id}. For adding Nodes you should use the "default" form mode, because the route name to add nodes is "node.add" instead of "entity.node.add" for other node forms it should work as expected. For User entities this module doesn't work.

Installation

Download and install as you usually do or described here.

Configuration

  • Go to "Admin > Structure > Display Modes > Form Modes > Add Form Mode" (or /admin/structure/display-modes/form/add) and select i.e. "Content".
  • Type "Edit form" (important: Machine name must be "node.edit_form") and save.
  • Got to "Admin > Structure > Content types > Article > Manage form display" (or /admin/structure/types/manage/article/form-display) and enable the new form mode "Edit form" in the section "Custom display settings" and save.
  • Click the tab "Edit form" that appears now on the page "Manage form display" and customize the Form to use, when you will edit an existing article entity.
  • You are done.

REQUIREMENTS

No requirements.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.3 Stable 10–11 Apr 23, 2026