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.
Updated: Comment #0
Problem/Motivation
ForumFormController is unlike all other FormInterface in that it gets the request directly from the container in createInstance(), instead of buildForm().
Furthermore, #2059245: Add a FormBase class containing useful methods is removing the buildForm() approach used by every other form, and introduces a getRequest() method.
Proposed resolution
Use getRequest() in ForumFormController
Remaining tasks
User interface changes
N/A
API changes
Constructor change.
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#1 | forum-2071429-1.patch | 2.3 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettWill mark needs review once the FormBase goes in.
Comment #2
tim.plunkettThat went in.
Comment #3
larowlanYep
Comment #4
catchCommitted/pushed to 8.x, thanks!