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