feat(search): refresh global search UI and align qa/docs updates
This commit is contained in:
@@ -106,7 +106,14 @@ class SearchConfig
|
||||
if ($provider !== null) {
|
||||
$mapped = $provider->mapResultItem($key, $data);
|
||||
if ($mapped !== null) {
|
||||
return ['label' => $mapped['title'], 'url' => $mapped['url']];
|
||||
$item = ['label' => $mapped['title'], 'url' => $mapped['url']];
|
||||
if (isset($mapped['subtitle']) && $mapped['subtitle'] !== '') {
|
||||
$item['subtitle'] = $mapped['subtitle'];
|
||||
}
|
||||
if (isset($mapped['icon']) && $mapped['icon'] !== '') {
|
||||
$item['icon'] = $mapped['icon'];
|
||||
}
|
||||
return $item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user