Hi,
My custom submit handler not fire, when i use managed_file field, that means If i upload any image with the field then submit the form the custom submit handler not firing, Its works if i didn't use managed_file field in the system_theme_settings alter.
And also I am getting this warning in my recent log.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'integrity_settings_form_submit' not found or invalid function name in Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (line 116 of /home/leopathu/Public/drupal-8.0.0/core/lib/Drupal/Core/Form/FormSubmitter.php).
May be it would relate with this issue : https://www.drupal.org/node/1862892
Comments
Comment #2
swentel CreditAttribution: swentel commentedIt seems exactly the same actually :)
A workaround is to use a form alter in a module.
Comment #3
junaidpvThere is a solution to this problem without having an extra module. We can add `.theme` file path manually to the list files to be loaded while form is processed.
See this post to read explanations: http://kb.detlus.com/articles/drupal/drupal-8-use-custom-submit-handler-for-theme-settings-form/.
Comment #4
awolfey CreditAttribution: awolfey commentedPerfect. Thanks junaidpv.
Comment #5
wslstar CreditAttribution: wslstar as a volunteer commentedThe above solution is perfect to fix this warning issue. Thank you very much!