function SearchPageFormBase::save

Same name and namespace in other branches
  1. 11.x core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::save()

File

core/modules/search/src/Form/SearchPageFormBase.php, line 163

Class

SearchPageFormBase
Provides a base form for search pages.

Namespace

Drupal\search\Form

Code

public function save(array $form, FormStateInterface $form_state) {
  $this->entity
    ->save();
  $form_state->setRedirectUrl($this->entity
    ->toUrl('collection'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.