function panopoly_search_views_pre_render in Panopoly 8.2
Implements hook_views_pre_render().
File
- modules/
panopoly/ panopoly_search/ panopoly_search.module, line 131 - Hooks for the panopoly_search module.
Code
function panopoly_search_views_pre_render(ViewExecutable $view) {
if (in_array($view->storage
->id(), [
'panopoly_search_db',
'panopoly_search_solr',
])) {
$view->element['#attached']['library'][] = 'panopoly_search/view';
}
}