function ImageStyleEditForm::submitForm

Same name in other branches
  1. 9 core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::submitForm()
  2. 8.9.x core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::submitForm()
  3. 11.x core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::submitForm()

Overrides EntityForm::submitForm

File

core/modules/image/src/Form/ImageStyleEditForm.php, line 243

Class

ImageStyleEditForm
Controller for image style edit form.

Namespace

Drupal\image\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    // Update image effect weights.
    if (!$form_state->isValueEmpty('effects')) {
        $this->updateEffectWeights($form_state->getValue('effects'));
    }
    parent::submitForm($form, $form_state);
}

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