function EditExpressionForm::submitForm

Overrides FormInterface::submitForm

1 call to EditExpressionForm::submitForm()
AddExpressionForm::submitForm in src/Form/AddExpressionForm.php
Form submission handler.
1 method overrides EditExpressionForm::submitForm()
AddExpressionForm::submitForm in src/Form/AddExpressionForm.php
Form submission handler.

File

src/Form/EditExpressionForm.php, line 130

Class

EditExpressionForm
UI form to edit an expression like a condition or action in a rule.

Namespace

Drupal\rules\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->component = $this->buildComponent($form, $form_state);
    $this->rulesUiHandler
        ->updateComponent($this->component);
    $form_state->setRedirectUrl($this->rulesUiHandler
        ->getBaseRouteUrl());
}