function AddExpressionForm::submitForm

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\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
    $form_state->setRedirectUrl($this->rulesUiHandler
        ->getBaseRouteUrl());
}