function d8cache_preprocess_search_results in Drupal 8 Cache Backport 7
Implements hook_preprocess_search_results().
File
- includes/
theme.inc, line 20 - Theme functions and hooks for the D8 caching system backport.
Code
function d8cache_preprocess_search_results(&$variables) {
$tags = array();
$tags[] = 'search_index';
if (!empty($variables['module'])) {
$tags[] = 'search_index:' . $variables['module'];
}
drupal_add_cache_tags($tags);
}