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).

FormAlter as Plugin

1,300 sites Security covered Drupal 10–11
View on drupal.org

This module allows developers to use object-oriented plugins to alter Drupal forms, paragraph forms, and inline entity forms. It supports dependency injection and allows plugins to be applied in a specific order. The module also enhances the Web Profiler module by showing which plugins have affected each form.

Obsoletion

Drupal 11.2+ now supports OOP hooks. You should move your FormAlter plugins into the /src/Hook/ folder and convert them to #[Hook()] attributes:

There are no plans to upgrade this module to Drupal 12 as a result, as traditional hooks are deprecated.

Overview

This module provides three annotation Plugins to be used to alter Forms, Paragraphs forms and Inline Entity Forms.

It allows you to use Dependency Injection of services and to define a weight for your plugin which will affect the alteration queue.

Multiple plugins can alter the same form.

It also decorates the Forms data collector used by the WebProfiler module by adding a list of all the plugins affecting each form.

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
Oct 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
8.x-1.8 Stable 10–11 Oct 1, 2025