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/developer!topics!forms_api_reference.h...
Enter a descriptive title (above) relating to Form API Reference, then describe the problem you have found:
The API documentation shows that managed_file supports #prefix and #suffix, and does not support #field_prefix and #field_suffix.
In fact, the opposite is true. The managed_file field supports #field_prefix and #field_suffix, NOT #prefix and #suffix.
Comments
Comment #2
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedHm, that is odd - I thought everything supported #prefix and #suffix. But trying it out with this it seems like you're right:
The form API documentation is not stored within Drupal core - this issue would need to be moved to https://www.drupal.org/project/issues/documentation?component=API+docume... instead to patch it there.
However I didn't do that myself because I wonder if this might be a bug in the actual functionality instead...
Comment #3
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commented