You are here

public function EditExpressionForm::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 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());
}