// Return the data and total count
$this->
View()->
assign(['success' => true, 'data' =>
$data, 'total' =>
$total]);
} /**
* returns a JSON string to the view containing the shops information of an Product Feed we can't use the base
* store because we need all shops and children
*/
public function getShopsAction() { $shopQuery =
$this->
getShopRepository()->
getBaseListQuery();
$data =
$shopQuery->
getArrayResult();
// Return the data and total count
$this->
View()->
assign(['success' => true, 'data' =>
$data, 'total' => \
count($data)]);
} /**
* Returns a JSON string to the view containing the article information of an Product Feed
*/
public function getArticlesAction() {