public function ActionAdminManageForm::submitForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/action/src/Form/ActionAdminManageForm.php \Drupal\action\Form\ActionAdminManageForm::submitForm()
- 9 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 87
Class
- ActionAdminManageForm
- Provides a configuration form for configurable actions.
Namespace
Drupal\action\FormCode
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'),
]);
}
}