Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently most of the test form controller implements formInterface. Since there is no common base class, formController need to take care of all supporting methods injection, etc( e.g. t() vs $this-t()
Proposed resolution
Discuss and find what is the best way to handle this. Either we can use Drupal\Core\Form\FormBase.php or we can have test specific formBase.
Remaining tasks
1. Discussion
2. Document
3. Patch, if it is a new formBase.
User interface changes
No
API changes
No
Related Issues
Follow-up from #1987606-20: Convert ajax_test_dialog() to a new style controller
Comments
Comment #1
vijaycs85Just had a chat with @alexpott on IRC.