SearchPageEditForm.php in Drupal 9
File
core/modules/search/src/Form/SearchPageEditForm.php
View source
<?php
namespace Drupal\search\Form;
use Drupal\Core\Form\FormStateInterface;
class SearchPageEditForm extends SearchPageFormBase {
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Save search page');
return $actions;
}
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(),
]));
}
}