theming for the "more..." links
[ryf-theme.git] / search.pages.inc
CommitLineData
360cec85
AE
1<?php
2
3
4/* implements template_preprocess_search_result */
5
6function ryf_preprocess_search_result (&$variables) {
7
8 //debug(unserialize(serialize($variables)));
9 //debug(unserialize(serialize($variables['result']['node'])));
10 //debug(unserialize(serialize($variables['result']['node']->toArray()['field_image'])));
11
12 // this attaches the 'node' object so that we can access the image in field_image, via our twig template.
13 $variables['node'] = $variables['result']['node'];
14
15}
16