Since I work with Drupal, I had a lot of project, with some case of third party application maintenance. One of the most consistent problem is the very low quality of the code, whatever it's a big company or a small client, there is always a lack of technical management. Drupal the culprit? Drupal is very flexible and is probably providing the most powerful site building in the industry. But...
Coding
By Jean, 30 December, 2021
With Drupal 9 we have access to the class confirmFormBase which extends FormBase. This class is used to quickly add a confirm step to your form. Common usage is to confirm a deletion: "Are you sure you want to delete node 23?" The basic usage is to create a new route for the confirm form, living side of your form, and use route parameter to pass an id. One form with confirm step included But here...