- Issue created by @Harlor
Drupal provides several methods for altering forms, with the hook_form_alter
being one of the most widely used. This approach allows for the modification of the form array and the addition of static callbacks for validation and submission processes.
Despite its flexibility and ease of use, this method falls short of integrating with the concept of altering the implementing class for a specific feature, as is possible with services.
Allow form decorators.
On https://www.drupal.org/project/form_decorator β there is a Proof of Concept how one could offer an easy way to decorate forms.
Key benefits might be:
Active
11.0 π₯
Last updated