/**
* {@inheritdoc}
*/
public function getList(array
$blogIds, ShopContextInterface
$context) { $data =
$this->
getQuery($blogIds,
$context) ->
execute() ->
fetchAll(PDO::FETCH_ASSOC
);
$articles =
$this->
getProductsQuery(array_column($data, '__blog_id'
)) ->
execute() ->
fetchAll(PDO::FETCH_GROUP | PDO::FETCH_COLUMN
);
$medias =
$this->
getMediaQuery(array_column($data, '__blog_id'
)) ->
execute() ->
fetchAll(PDO::FETCH_GROUP | PDO::FETCH_COLUMN
);
$blogs =
[];
foreach ($data as $row) { $id =
(int) $row['__blog_id'
];