$data['themeInfo'
] =
$this->
getThemeInfo($template);
return $this->
get('events'
)->
filter('Shopware_Theme_Detail_Loaded',
$data,
[ 'shop' =>
$shop,
'template' =>
$template,
]);
} protected function getList($offset,
$limit,
$sort =
[],
$filter =
[], array
$wholeParams =
[]) { if (!
isset($wholeParams['shopId'
])) { $wholeParams['shopId'
] =
$this->
getDefaultShopId();
} $data = parent::
getList(null, null,
$sort,
$filter,
$wholeParams);
$shop =
$this->
getManager()->
find(Shop::
class,
$wholeParams['shopId'
]);
foreach ($data['data'
] as &
$theme) { $instance =
$this->
getRepository()->
find($theme['id'
]);
if (!
$instance instanceof Template
) { continue;
}