You are here

public function ImageStyleDeleteForm::submitForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Form/ImageStyleDeleteForm.php \Drupal\image\Form\ImageStyleDeleteForm::submitForm()

Overrides EntityDeleteFormTrait::submitForm

File

core/modules/image/src/Form/ImageStyleDeleteForm.php, line 49
Contains \Drupal\image\Form\ImageStyleDeleteForm.

Class

ImageStyleDeleteForm
Creates a form to delete an image style.

Namespace

Drupal\image\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->entity
    ->set('replacementID', $form_state
    ->getValue('replacement'));
  parent::submitForm($form, $form_state);
}