public function AddExpressionForm::submitForm in Rules 8.3
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 EditExpressionForm::submitForm
File
- src/
Form/ AddExpressionForm.php, line 90
Class
- AddExpressionForm
- UI form to add an expression like a condition or action to a rule.
Namespace
Drupal\rules\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$form_state
->setRedirectUrl($this->rulesUiHandler
->getBaseRouteUrl());
}