/**
  * Form submission handler for the 'cancel' action.
  */
 public function cancel(array $form, FormStateInterface $form_state)
 {
     $this->rulesUiHandler->clearTemporaryStorage();
     drupal_set_message($this->t('Canceled.'));
     $form_state->setRedirect('entity.rules_component.collection');
 }
Example #2
0
 /**
  * Form submission handler for the 'cancel' action.
  */
 public function cancel(array $form, FormStateInterface $form_state)
 {
     $this->rulesUiHandler->clearTemporaryStorage();
     drupal_set_message($this->t('Canceled.'));
     $form_state->setRedirectUrl($this->rulesUiHandler->getBaseRouteUrl());
 }