SearchPageFormBase::$entity

The entity being used by this form. Type: \Drupal\search\SearchPageInterface Overrides EntityForm::$entity File core/modules/search/src/Form/SearchPageFormBase.php, line 22 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code protected $entity;

SearchPageFormBase

Provides a base form for search pages. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\search\Form\SearchPageFormBase File core/modules/search/src/Form/SearchPageFormBase.php, line 15 Namespace Drupal\search\Form Mem

SearchPageForm::submitForm

public SearchPageForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

SearchPageForm::getFormId

public SearchPageForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides EntityForm::getFormId File core/modules/search/src/Form/SearchPageForm.php, line 30 Class SearchPageForm Provides a search form for site wide search. Namespace Drupal\search\Form Code public function getFormId() { return 'search_form'; }

SearchPageForm::form

public SearchPageForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/search/src/Form/SearchPageForm.php, line 37 Class SearchPageForm Provides a search form for site wide search. Namespace Drupal\search\Form Code public function form(array $form, FormStateInterface $form_state) { $plugin = $this-&

SearchPageForm::actions

protected SearchPageForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/search/src/Form/SearchPageForm.php, line 82 Class SearchPageForm Provides a search form for site wide search. Namespace Drupal\search\Form Code protected function actions(array $form, FormStateInterface $f

SearchPageForm::$entity

Type: \Drupal\search\SearchPageInterface Overrides EntityForm::$entity File core/modules/search/src/Form/SearchPageForm.php, line 25 Class SearchPageForm Provides a search form for site wide search. Namespace Drupal\search\Form Code protected $entity;

SearchPageForm

Provides a search form for site wide search. Search plugins can define method searchFormAlter() to alter the form. If they have additional or substitute fields, they will need to override the form submit, making sure to redirect with a GET parameter of 'keys' included, to trigger the search being processed by the controller, and adding in any additional query parameters they need to execute search. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface

SearchPageEditForm::save

public SearchPageEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the op

SearchPageEditForm::actions

protected SearchPageEditForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/search/src/Form/SearchPageEditForm.php, line 15 Class SearchPageEditForm Provides a form for editing a search page. Namespace Drupal\search\Form Code protected function actions(array $form, FormStateIn