public function DisableForm::submitForm

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides FormInterface::submitForm

File

drupal/core/modules/filter/lib/Drupal/filter/Form/DisableForm.php, line 72
Contains \Drupal\filter\Form\DisableForm.

Class

DisableForm
Provides the filter format disable form.

Namespace

Drupal\filter\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->format
    ->disable()
    ->save();
  drupal_set_message(t('Disabled text format %format.', array(
    '%format' => $this->format->name,
  )));
  $form_state['redirect'] = 'admin/config/content/formats';
}