file_managed_file_submit($form, FormStateInterface $form_state)
Form submission handler for upload / remove buttons of managed_file elements.
See also
\Drupal\file\Element\ManagedFile::processManagedFile()
File
core/modules/file/file.module, line 1102 Defines a "managed_file" Form API field and a "file" field for Field module.
Code
function file_managed_file_submit($form, FormStateInterface $form_state) {
// Determine whether it was the upload or the remove button that was clicked,
// an