search is ok! (remains to sync search and corpus map
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
function template_preprocess_edlp_search_results(&$vars){
|
||||
// dpm($vars);
|
||||
|
||||
$view_builder = \Drupal::entityTypeManager()->getViewBuilder('node');
|
||||
|
||||
$items = [];
|
||||
if(count($vars['items'])){
|
||||
foreach ($vars['items'] as $item) {
|
||||
$items[] = $view_builder->view($item, 'search_index');
|
||||
}
|
||||
}
|
||||
|
||||
$vars['items'] = $items;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user