$this->
View()->
assign('success', true
);
} protected function getSortConditions($sort,
$model,
$alias,
$whiteList =
[]) { $sort = parent::
getSortConditions($sort,
$model,
$alias,
$whiteList);
if ($this->
isSortingSetByUser($sort)) { return $sort;
} return $this->
addSortingById($sort);
} /**
* @throws ModelNotFoundException if the specified shop couldn't be found
*/
private function createContext(int
$shopId, int
$currencyId, ?string
$customerGroupKey = null
): ShopContextInterface
{ $repo =
Shopware()->
Container()->
get(ModelManager::
class)->
getRepository(Shop::
class);
$shop =
$repo->
getActiveById($shopId);