Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

FormAlter as Plugin

Security covered Obsolete 1,300 sites

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.

Drupal 10–11

Ask your assistant about FormAlter as Plugin

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3
Tracked since
Dec 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.8 Stable 10–11 Oct 1, 2025
8.x-1.7 Stable 8–10 Mar 8, 2024
8.x-1.6 Stable 8–10 Dec 11, 2023