function olivero_preprocess_item_list__search_results

Same name and namespace in other branches
  1. 10 core/themes/olivero/olivero.theme \olivero_preprocess_item_list__search_results()

Implements hook_preprocess_item_list__search_results().

File

core/themes/olivero/olivero.theme, line 553

Code

function olivero_preprocess_item_list__search_results(&$variables) : void {
  if (isset($variables['empty'])) {
    $variables['empty']['#attributes']['class'][] = 'empty-search-results-text';
    $variables['empty']['#attached']['library'][] = 'olivero/search-results';
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.