function ActionFormBase::actions

Same name in other branches
  1. 9 core/modules/action/src/Form/ActionFormBase.php \Drupal\action\Form\ActionFormBase::actions()
  2. 10 core/modules/action/src/Form/ActionFormBase.php \Drupal\action\Form\ActionFormBase::actions()
  3. 11.x core/modules/action/src/Form/ActionFormBase.php \Drupal\action\Form\ActionFormBase::actions()

Overrides EntityForm::actions

File

core/modules/action/src/Form/ActionFormBase.php, line 104

Class

ActionFormBase
Provides a base form for action forms.

Namespace

Drupal\action\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.