add the locale to the search result
This commit is contained in:
parent
5b8f54b138
commit
c7fd49e553
@ -45,6 +45,7 @@ class ItemsCollection
|
||||
return [
|
||||
'_id' => $item['_id'],
|
||||
'_name' => $item['_name'],
|
||||
'locale' => $this->locale[$item['_id']] ?? ''
|
||||
];
|
||||
})->values();
|
||||
}
|
||||
@ -59,7 +60,6 @@ class ItemsCollection
|
||||
$item = $this->items[$id] ?? throw new ItemNotFoundException('Item not found');
|
||||
return [
|
||||
'item' => $item,
|
||||
'locale' => $this->locale[$id] ?? ''
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user