Form submission handler.
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
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';
}