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

Class

DateFormatLocalizeResetForm
Builds a form for enabling a module.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->configFactory
    ->get('locale.config.' . $this->language->langcode . '.system.date')
    ->delete();
  $form_state['redirect'] = 'admin/config/regional/date-time/locale';
}