Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
Presumably, the returned ID should be a string that can be a valid PHP function name, since it's used in hook implementation names such as hook_form_FORM_ID_alter().
The documentation should state this restriction.
Also, is there any limit on length, for example, for use in cache IDs?
Comment | File | Size | Author |
---|---|---|---|
#4 | FormInterface--getFormId-doc-fixed-2877828-4.patch | 584 bytes | msankhala |
Comments
Comment #4
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedHere is a patch for this.
Comment #5
joachim CreditAttribution: joachim commentedLooks good!
Comment #6
alexpottCommitted and pushed f283ab5511 to 8.6.x and 58288d21b6 to 8.5.x. Thanks!