function file_managed_file_submit
Form submission handler for upload / remove buttons of managed_file elements.
Deprecated
in drupal:11.3.0 and is removed from drupal:12.0.0. Use Drupal\file\Element\ManagedFile::submit() instead.
See also
\Drupal\file\Element\ManagedFile::processManagedFile()
https://www.drupal.org/node/3534091
File
-
core/
modules/ file/ file.module, line 288
Code
function file_managed_file_submit($form, FormStateInterface $form_state) : void {
@trigger_error(__METHOD__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use Drupal\\file\\Element\\ManagedFile::submit() instead. See https://www.drupal.org/node/3534091', E_USER_DEPRECATED);
ManagedFile::submit($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.