You are here

public function ActionAdminManageForm::submitForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/action/src/Form/ActionAdminManageForm.php \Drupal\action\Form\ActionAdminManageForm::submitForm()

Form submission handler.

Parameters

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

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

core/modules/action/src/Form/ActionAdminManageForm.php, line 91
Contains \Drupal\action\Form\ActionAdminManageForm.

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', array(
      'action_id' => $form_state
        ->getValue('action'),
    ));
  }
}