public function RoleFormController::delete

Form submission handler for the 'delete' action.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: A reference to a keyed array containing the current state of the form.

Overrides EntityFormController::delete

File

drupal/core/modules/user/lib/Drupal/user/RoleFormController.php, line 84
Contains \Drupal\user\RoleFormController.

Class

RoleFormController
Form controller for the role entity edit forms.

Namespace

Drupal\user

Code

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