function file_managed_file_submit
Same name and namespace in other branches
- 10 core/modules/file/file.module \file_managed_file_submit()
- 11.x core/modules/file/file.module \file_managed_file_submit()
- 9 core/modules/file/file.module \file_managed_file_submit()
- 8.9.x core/modules/file/file.module \file_managed_file_submit()
- 7.x modules/file/file.module \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 282
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.