Chris@0: getForm() was originally called with are Chris@0: * available in the array $form_state->getBuildInfo()['args']. Chris@0: * Chris@0: * @see SearchInterface::buildSearchUrlQuery() Chris@0: */ Chris@0: public function searchFormAlter(array &$form, FormStateInterface $form_state); Chris@0: Chris@0: /** Chris@0: * Builds the URL GET query parameters array for search. Chris@0: * Chris@0: * When the search form is submitted, a redirect is generated with the Chris@0: * search input as GET query parameters. Plugins using the searchFormAlter() Chris@0: * method to add form elements to the search form will need to override this Chris@0: * method to gather the form input and add it to the GET query parameters. Chris@0: * Chris@0: * @param \Drupal\Core\Form\FormStateInterface $form_state Chris@0: * The form state, with submitted form information. Chris@0: * Chris@0: * @return array Chris@0: * An array of GET query parameters containing all relevant form values Chris@0: * to process the search. The 'keys' element must be present in order to Chris@0: * trigger generation of search results, even if it is empty or unused by Chris@0: * the search plugin. Chris@0: * Chris@0: * @see SearchInterface::searchFormAlter() Chris@0: */ Chris@0: public function buildSearchUrlQuery(FormStateInterface $form_state); Chris@0: Chris@0: }