function custom_search_page_build in Custom Search 8
Implements hook_page_build().
File
- ./
custom_search.module, line 377 - Bring customizations to the default search box.
Code
function custom_search_page_build(&$page) {
$page['#attached']['library'][] = 'custom_search/custom_search.front';
$page['#attached']['drupalSettings'][] = [
'custom_search' => [
'solr' => \Drupal::moduleHandler()
->moduleExists('apachesolr_search') || \Drupal::moduleHandler()
->moduleExists('search_api_solr') ? 1 : 0,
],
];
}