function SearchPageFormBase::save
Same name in other branches
- 8.9.x core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::save()
- 10 core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::save()
- 11.x core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::save()
Overrides EntityForm::save
2 calls to SearchPageFormBase::save()
- SearchPageAddForm::save in core/
modules/ search/ src/ Form/ SearchPageAddForm.php - Form submission handler for the 'save' action.
- SearchPageEditForm::save in core/
modules/ search/ src/ Form/ SearchPageEditForm.php - Form submission handler for the 'save' action.
2 methods override SearchPageFormBase::save()
- SearchPageAddForm::save in core/
modules/ search/ src/ Form/ SearchPageAddForm.php - Form submission handler for the 'save' action.
- SearchPageEditForm::save in core/
modules/ search/ src/ Form/ SearchPageEditForm.php - Form submission handler for the 'save' action.
File
-
core/
modules/ search/ src/ Form/ SearchPageFormBase.php, line 163
Class
- SearchPageFormBase
- Provides a base form for search pages.
Namespace
Drupal\search\FormCode
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.