Is there a core issue for that?

Created on 10 March 2023, over 1 year ago
Updated 26 February 2024, 9 months ago

This module is quite helpful and I think it would make sense to get away from .module files with form_alter hooks. So is there a core issue or initiative for something like this?

If yet, it would be super nice to have it linked on the project page to know about it and track status.

Thanks for this nice one!

💬 Support request
Status

Closed: won't fix

Version

1.0

Component

Documentation

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇮🇹Italy nikolas.costa Rome

    Hello @Anybody, we have submitted a request to Drupal to include "FormAlter as Plugin" in the core.

  • Assigned to nikolas.costa
  • Status changed to Needs work 11 months ago
  • Status changed to Closed: won't fix 9 months ago
  • 🇮🇹Italy aronne

    What makes form alters special over other alter hooks? why not a plugin for every hook?

    We're getting into well trodden territory, such as proposals to improve the hook system generally, or implementing event dispatch/subscribers and weight/priority systems.

    A recent example is #3366083: [META] Hooks via attributes on service methods (hux style).

    And you have contrib solutions already which handle hooks/alters generally, such as Hook Event Dispatcher and Hux with priority/ordering systems. Each have their own way of doing dependency injection.

    We're going to need a harder sell on why you want this and what makes your proposal unique.

    Since nobody else but us seem to be interested in porting this module inside Drupal Core I'd say we can close this issue and leave things as they already are. Good luck with it

Production build 0.71.5 2024