protected function ActionFormControllerBase::actions

Returns an array of supported actions for the current entity form.

Overrides EntityFormController::actions

File

drupal/core/modules/action/lib/Drupal/action/ActionFormControllerBase.php, line 120
Contains Drupal\action\ActionEditFormController.

Class

ActionFormControllerBase
Provides a base form controller for action forms.

Namespace

Drupal\action

Code

protected function actions(array $form, array &$form_state) {
  $actions = parent::actions($form, $form_state);
  unset($actions['delete']);
  return $actions;
}