|
|
@ -103,6 +103,10 @@ class RoblibSearchSolrsiteController extends ControllerBase { |
|
|
|
$output['results'][$id]['type'] = reset($type); |
|
|
|
$output['results'][$id]['type'] = reset($type); |
|
|
|
$urls = $result->getField('url')->getValues(); |
|
|
|
$urls = $result->getField('url')->getValues(); |
|
|
|
$output['results'][$id]['url'] = reset($urls); |
|
|
|
$output['results'][$id]['url'] = reset($urls); |
|
|
|
|
|
|
|
if ($solr_type == 'BestBet') { |
|
|
|
|
|
|
|
$entity = $result->getOriginalObject()->getValue(); |
|
|
|
|
|
|
|
$output['results'][$id]['title'] = $entity->field_link->first()->title; |
|
|
|
|
|
|
|
} |
|
|
|
$links = $result->getField('field_link')->getValues(); |
|
|
|
$links = $result->getField('field_link')->getValues(); |
|
|
|
$output['results'][$id]['field_link'] = empty($links) ? '' : $links; |
|
|
|
$output['results'][$id]['field_link'] = empty($links) ? '' : $links; |
|
|
|
} |
|
|
|
} |
|
|
|