/** @var Enlight_Controller_Action $controller */
$controller =
$args->
get('subject'
);
$edition =
$this->
hasBackendLogin() ?
$this->shopwareEditionService->
getProductEdition() : ShopwareEdition::CE;
$controller->
View()->
assign('product',
$edition);
} protected function hasBackendLogin(): bool
{ /** @var Shopware_Plugins_Backend_Auth_Bootstrap $authPlugin */
$authPlugin =
$this->plugins->
get('Backend'
)->
get('Auth'
);
return $authPlugin->
checkAuth() !== null;
}}