Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I don't understand the question. You just want to alter a form and set a checkbox? If yes, have you tried with altering the form? If yes, have you tried to hook in the form after DANSE has done its work? If your module hook implementation is called before DANSE you can use hook_module_implements_alter to force your module to be called after DANSE.
That's the standard definition of a web root and a project root. I already know that. What I am asking is how Drush determines the value of WEBROOT and PROJECTROOT, not the general definition of web and project root in the context of a web project.
Yes, that's true. But how Drush knows that? In the alias configuration you define the root path. That could be the webroot, but that's not true because you can point to the folder that contains the composer.json. I guess Drush is intelligent enough to check if the root configuration value is a drupal root (in that case WEBROOT and PROJECTROOT are that folder) or is boilerplate scheme like the one created by composer create-project, so the folder with composer.json is PROJECTROOT and the web folder is WEBROOT... but I would like a confirmation.