function SearchPageAddForm::actions

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

Overrides EntityForm::actions

File

core/modules/search/src/Form/SearchPageAddForm.php, line 27

Class

SearchPageAddForm
Provides a form for adding a search page.

Namespace

Drupal\search\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this->t('Save');
    return $actions;
}

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