recommend->getRecommendations(); $results = $this->recommend->getResults(); $displayQuery = $results->getParams()->getDisplayQuery(); $that = $this; $callback = function ($heading) use ($results, $displayQuery, $that) { // Generate a new search URL that replaces the user's current term // with the authority term: $url = $that->url($results->getOptions()->getSearchAction()) . $results->getUrlQuery()->replaceTerm($displayQuery, $heading); return "" . $that->escapeHtml($heading) . ''; }; $content = implode(', ', array_map($callback, $data)); ?>
transEsc($this->recommend->getHeader())?>: