function ActionAdminManageForm::submitForm

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

Overrides FormInterface::submitForm

File

core/modules/action/src/Form/ActionAdminManageForm.php, line 85

Class

ActionAdminManageForm
Provides a configuration form for configurable actions.

Namespace

Drupal\action\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    if ($form_state->getValue('action')) {
        $form_state->setRedirect('action.admin_add', [
            'action_id' => $form_state->getValue('action'),
        ]);
    }
}

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