function SearchPageEditForm::save

Same name in other branches
  1. 9 core/modules/search/src/Form/SearchPageEditForm.php \Drupal\search\Form\SearchPageEditForm::save()
  2. 8.9.x core/modules/search/src/Form/SearchPageEditForm.php \Drupal\search\Form\SearchPageEditForm::save()
  3. 11.x core/modules/search/src/Form/SearchPageEditForm.php \Drupal\search\Form\SearchPageEditForm::save()

Overrides SearchPageFormBase::save

File

core/modules/search/src/Form/SearchPageEditForm.php, line 26

Class

SearchPageEditForm
Provides a form for editing a search page.

Namespace

Drupal\search\Form

Code

public function save(array $form, FormStateInterface $form_state) {
    parent::save($form, $form_state);
    $this->messenger()
        ->addStatus($this->t('The %label search page has been updated.', [
        '%label' => $this->entity
            ->label(),
    ]));
}

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