public function DateFormatDeleteForm::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/system/lib/Drupal/system/Form/DateFormatDeleteForm.php, line 105
Contains \Drupal\system\Form\DateFormatDeleteForm.

Class

DateFormatDeleteForm
Builds a form to delete a date format.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, array &$form_state) {
  system_date_format_delete($this->formatID);
  drupal_set_message(t('Removed date format %format.', array(
    '%format' => $this->format['name'],
  )));
  $form_state['redirect'] = 'admin/config/regional/date-time/formats';
}