function ImageEffectDeleteForm::submitForm
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 FormInterface::submitForm
File
- 
              core/modules/ image/ src/ Form/ ImageEffectDeleteForm.php, line 71 
Class
- ImageEffectDeleteForm
- Form for deleting an image effect.
Namespace
Drupal\image\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->imageStyle
    ->deleteImageEffect($this->imageEffect);
  $this->messenger()
    ->addStatus($this->t('The image effect %name has been deleted.', [
    '%name' => $this->imageEffect
      ->label(),
  ]));
  $form_state->setRedirectUrl($this->imageStyle
    ->toUrl('edit-form'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
