Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function save(array $form, FormStateInterface $form_state)
 {
     // If there is no default search page, make the added search the default.
     if (!$this->searchPageRepository->getDefaultSearchPage()) {
         $this->searchPageRepository->setDefaultSearchPage($this->entity);
     }
     parent::save($form, $form_state);
     drupal_set_message($this->t('The %label search page has been added.', array('%label' => $this->entity->label())));
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function save(array $form, FormStateInterface $form_state)
 {
     parent::save($form, $form_state);
     drupal_set_message($this->t('The %label search page has been updated.', array('%label' => $this->entity->label())));
 }