ImageToolkitForm::submitForm

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

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);
}
doc_Drupal
2016-10-29 09:20:09
Comments
Leave a Comment

Please login to continue.