public ImageToolkitForm::submitForm(array &$form, FormStateInterface $form_state)
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- core/modules/system/src/Form/ImageToolkitForm.php, line 113
Class
- ImageToolkitForm
- Configures image toolkit settings for this site.
Namespace
Drupal\system\Form
Code
1 2 3 4 5 6 7 8 9 10 11 12 | public function submitForm( array & $form , FormStateInterface $form_state ) { $this ->config( 'system.image' ) ->set( 'toolkit' , $form_state ->getValue( 'image_toolkit' )) ->save(); // Call the form submit handler for each of the toolkits. foreach ( $this ->availableToolkits as $toolkit ) { $toolkit ->submitConfigurationForm( $form , $form_state ); } parent::submitForm( $form , $form_state ); } |
Please login to continue.