Пример #1
0
 /**
  * {@inheritdoc}
  */
 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());
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $this->rulesUiHandler->clearTemporaryStorage();
     $form_state->setRedirectUrl($this->rulesUiHandler->getBaseRouteUrl());
     drupal_set_message($this->t('The lock has been broken and you may now edit this @component_type.', ['@component_type' => $this->rulesUiHandler->getPluginDefinition()->component_type_label]));
 }
 /**
  * {@inheritdoc}
  */
 public function getCancelUrl()
 {
     return $this->rulesUiHandler->getBaseRouteUrl();
 }