Implement object oriented form alters

Created on 6 January 2015, almost 10 years ago
Updated 18 October 2024, 28 days ago

In #2392319: Config objects (but not config entities) should by default be immutable β†’ we need to be able to use a trait in a form alter. This is so that form alter can save configuration once \Drupal::config() returns immutable config. For discussions on why this is preferable see that issue.

This change also has the advantage of making it easy to use new D8 best practices for form alters. For example, constructor injection and only autoloading the minimum amount of code to perform a request. Plus form alters are one of the entry points to drupal it would be great if they looked more like the rest of D8.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

forms system

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024