public function PictureMappingActionConfirmForm::submitForm

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: An associative array containing the current state of the form.

Overrides FormInterface::submitForm

File

drupal/core/modules/picture/lib/Drupal/picture/Form/PictureMappingActionConfirmForm.php, line 62
Contains \Drupal\picture\Form\PictureMappingActionConfirm.

Class

PictureMappingActionConfirmForm

Namespace

Drupal\picture\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->pictureMapping
    ->delete();
  drupal_set_message(t('Picture mapping %label has been deleted.', array(
    '%label' => $this->pictureMapping
      ->label(),
  )));
  watchdog('picture', 'Picture mapping %label has been deleted.', array(
    '%label' => $this->pictureMapping
      ->label(),
  ), WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/config/media/picturemapping';
}