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...

Jean Valverde - Code breeder since 2006
Lead Web / Php developer, Drupal expert with some Python, Rust and Devops
You can check and evaluate my work or my modules and feel free to contact me for a quote on any Drupal related project.
By Jean, 16 December, 2021
New Olivero theme is a great new front theme introduced with Drupal 9.1. But for now Olivero is not yet stable. Still, here is a simple article to create a sub theme for Olivero.
By Jean, 23 July, 2019
Gitlab-CI introduced a flexible and powerful CI solution. My project Giltab CI fo Drupal 8 is meant to ease the integration with a Drupal 8 project. It is now ready to handle a single module or theme and provide a full pipeline for your testing. Here is a brief article to integrate Gitlab-CI with your module in probably less than 10 minutes! This CI includes Drupal testing (Unit, Functional...
By Jean, 9 February, 2019
JavaScript tests under Drupal 8 with Chrome.
By Jean, 22 January, 2019
Here is an almost typical use case when developing custom code for Drupal 8. A third party module declare a controller with a method that you want to override because you need to change the logic and there is no practical way to do it in the module (could be a hook). But this class implements ControllerBase with dependency injection, (and override most of the methods in ControllerBase, but this is...