public function SetDelete::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/shortcut/lib/Drupal/shortcut/Form/SetDelete.php, line 122
Contains \Drupal\shortcut\Form\SetDelete.

Class

SetDelete
Builds the shortcut set deletion form.

Namespace

Drupal\shortcut\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->shortcut
    ->delete();
  $form_state['redirect'] = 'admin/config/user-interface/shortcut';
  drupal_set_message(t('The shortcut set %title has been deleted.', array(
    '%title' => $this->shortcut
      ->label(),
  )));
}