You are here

public function ImageStyleEditForm::submitForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::submitForm()
  2. 9 core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::submitForm()

File

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

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