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.
API page: https://api.drupal.org/api/drupal/core%21core.api.php/group/form_api/8.2.x
Enter a descriptive title (above) referring to Form generation, then describe the problem you have found:
The following statement is wrong:
The argument to \Drupal::formBuilder()->getForm() is the name of a class that implements FormBuilderInterface.
It should be:
The argument to \Drupal::formBuilder()->getForm() is the name of a class that implements FormInterface.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff-2839267-9-12.txt | 608 bytes | er.pushpinderrana |
#12 | 2839267-11.patch | 608 bytes | er.pushpinderrana |
#9 | 2839267-9.patch | 518 bytes | joyceg |
#7 | 2839267-7-DocumentationImprovement.patch | 518 bytes | chiranjeeb2410 |
#3 | form_generation_core_api-1.patch | 55.66 KB | chiranjeeb2410 |
Comments
Comment #2
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commentedComment #3
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commentedThis should work. Rephrased "FormBuilderInterface" as "FormInterface".
Comment #4
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commentedComment #6
joyceg CreditAttribution: joyceg commented@chiranjeeb2410,
I think you have ended up uploading an entire program file. Please upload only the patch commit.
Comment #7
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commentedMade necessary changes. Applying new patch here.
Comment #9
joyceg CreditAttribution: joyceg commentedComment #10
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commented@joyceg,
Thanks, patch applies well. Changing status to RTBC.
Comment #11
alexpottthe comment needs re-flowing.
getForm()
will now fit on the previous line.Comment #12
er.pushpinderrana CreditAttribution: er.pushpinderrana as a volunteer and at Publicis Sapient for Publicis Sapient commentedRearrange the patch as required.
Comment #13
chiranjeeb2410 CreditAttribution: chiranjeeb2410 commented@pushpinderrana,
Thanks, patch applies well.
Comment #15
alexpottCommitted and pushed 1ff29a3 to 8.4.x and 520d1d0 to 8.3.x. Thanks!