You are here

function panopoly_search_page_route in Panopoly Search 8.2

Gets the route to the search page.

Return value

string|null The route name.

2 calls to panopoly_search_page_route()
PanopolySearchController::redirectToSearch in src/Controller/PanopolySearchController.php
Controller to redirect to the search page.
SearchBoxForm::buildForm in src/Form/SearchBoxForm.php
Form constructor.

File

./panopoly_search.module, line 194
Hooks for the panopoly_search module.

Code

function panopoly_search_page_route() {
  if (\Drupal::moduleHandler()
    ->moduleExists('panopoly_search_solr')) {
    return 'page_manager.page_view_panopoly_search_panopoly_search-layout_builder-0';
  }
  if (\Drupal::moduleHandler()
    ->moduleExists('panopoly_search_db')) {
    return 'page_manager.page_view_panopoly_search_panopoly_search-layout_builder-0';
  }
  return NULL;
}