Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 7 |
SearchPageEditForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 7 |
actions | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
|||
save | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\search\Form\SearchPageEditForm. | |
*/ | |
namespace Drupal\search\Form; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Provides a form for editing a search page. | |
*/ | |
class SearchPageEditForm extends SearchPageFormBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
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} | |
*/ | |
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.', array('%label' => $this->entity->label()))); | |
} | |
} |