public function SearchPageFormBase::buildForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::buildForm()
- 9 core/modules/search/src/Form/SearchPageFormBase.php \Drupal\search\Form\SearchPageFormBase::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides EntityForm::buildForm
1 method overrides SearchPageFormBase::buildForm()
- SearchPageAddForm::buildForm in core/
modules/ search/ src/ Form/ SearchPageAddForm.php - Form constructor.
File
- core/
modules/ search/ src/ Form/ SearchPageFormBase.php, line 66
Class
- SearchPageFormBase
- Provides a base form for search pages.
Namespace
Drupal\search\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this->plugin = $this->entity
->getPlugin();
return parent::buildForm($form, $form_state);
}