function ImageToolkitForm::submitForm

Same name and namespace in other branches
  1. 8.9.x core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::submitForm()
  2. 10 core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::submitForm()
  3. 11.x core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::submitForm()

Overrides ConfigFormBase::submitForm

File

core/modules/system/src/Form/ImageToolkitForm.php, line 115

Class

ImageToolkitForm
Configures image toolkit settings for this site.

Namespace

Drupal\system\Form

Code

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.