public ActionAdminManageForm::submitForm(array &$form, FormStateInterface $form_state)
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 86
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'))
);
}
}
Please login to continue.