Newer
Older
<?php
namespace Drupal\search\Form;
Dries Buytaert
committed
use Drupal\Core\Form\FormStateInterface;
Alex Pott
committed
* Provides a form for editing a search page.
*
* @internal
*/
class SearchPageEditForm extends SearchPageFormBase {
/**
* {@inheritdoc}
*/
Dries Buytaert
committed
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this->t('Save search page');
return $actions;
}
/**
* {@inheritdoc}
*/
Dries Buytaert
committed
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.', ['%label' => $this->entity->label()]));