Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $rule_expression = $this->ruleConfig->getExpression();
     $expression = $rule_expression->getExpression($this->uuid);
     $form_handler = $expression->getFormHandler();
     $form_handler->submitForm($form, $form_state);
     // Set the expression again so that the config is copied over to the
     // config entity.
     $this->ruleConfig->setExpression($rule_expression);
     $this->saveToTempStore();
     $form_state->setRedirect('entity.rules_reaction_rule.edit_form', ['rules_reaction_rule' => $this->ruleConfig->id()]);
 }