Timeline for Remove search form from search result page in Drupal 8
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2018 at 13:23 | comment | added | Jason | This does not appear to work. Using hook_preprocess_HOOK() would be something like YOURTHEME_preprocess_page__search_api(&$vars) {}. That assumes the hook suggestion would be search_api, which I'm not certain it is. Furthermore, I think $vars['form'] would not be the correct array key to unset b/c the form would likely be found within a nested array starting with the page region name as the first key. | |
Oct 17, 2017 at 15:12 | history | answered | Jesús Alba | CC BY-SA 3.0 |