Problem/Motivation
ManagedFile elements do not support the custom #required_message property.
@see #742344: Allow forms to set custom validation error messages on required fields
@see https://drupal.stackexchange.com/questions/263391/custom-required-field-...
Proposed resolution
Add custom #required_message support to ManagedFile elements.
Copy #required_message code from \Drupal\Core\Form\FormValidator::doValidateForm to \Drupal\file\Element\ManagedFile::validateManagedFile
Remaining tasks
- Update \Drupal\file\Element\ManagedFile::validateManagedFile
- Write automated test
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
TBD