protected function ViewEditFormController::actions

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

Overrides EntityFormController::actions

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewEditFormController.php, line 216
Contains Drupal\views_ui\ViewEditFormController.

Class

ViewEditFormController
Form controller for the Views edit form.

Namespace

Drupal\views_ui

Code

protected function actions(array $form, array &$form_state) {
  $actions = parent::actions($form, $form_state);
  unset($actions['delete']);
  $actions['cancel'] = array(
    '#value' => t('Cancel'),
    '#submit' => array(
      array(
        $this,
        'cancel',
      ),
    ),
  );
  return $actions;
}