public function ShortcutFormController::delete

Overrides \Drupal\Core\Entity\EntityFormController::delete().

Overrides EntityFormController::delete

File

drupal/core/modules/shortcut/lib/Drupal/shortcut/ShortcutFormController.php, line 92
Contains \Drupal\shortcut\ShortcutFormController.

Class

ShortcutFormController
Form controller for the shortcut set entity edit forms.

Namespace

Drupal\shortcut

Code

public function delete(array $form, array &$form_state) {
  $entity = $this->entity;
  $form_state['redirect'] = 'admin/config/user-interface/shortcut/manage/' . $entity
    ->id() . '/delete';
}