- π©πͺGermany Feuerwagen Bonn π©πͺπͺπΊ
This maybe started as kind of a bug report, but apparently turned into a feature request shortly afterwards.
Btw: Looks useful to me as well. ;)
- πΊπΈUnited States tregonia
+1 for this being a potentially nice addition to core.
In my use-case, when a user is changed from Active to Blocked, several custom things are triggered. Having the ability to define a confirmation step between validation and submit would be a welcome addition, and better encapsulate all the form functionality.
- πΊπΈUnited States maskedjellybean Portland, OR
I've love to see a solution for this.
I mistakenly thought I could solve this using
ConfirmFormBase
( https://www.drupal.org/docs/drupal-apis/form-api/confirmformbase-to-conf... β ), but I've come to the disappointing conclusion that it's simply not feasible to add confirmation to an existing form that does not already extendConfirmFormBase
. In order to add this to an existing form you would first need to override the existing form class with a new class that you control. This is possible. However, in order to avoid duplicating all of the code from the existing class, you would want to extend that class and only modify the necessary methods while calling the parent methods inside your modified methods when possible. But then of course your new class does not extendConfirmFormBase
, so you are right back where you started.