if (!
$request) { return [];
} /** @var SalesChannelContext|null $context */
$context =
$request->attributes->
get(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_CONTEXT_OBJECT
);
if (!
$context) { return [];
} $controllerInfo =
$this->
getControllerInfo($request);
$themeId =
$request->attributes->
get(SalesChannelRequest::ATTRIBUTE_THEME_ID
);
return [ 'shopware' =>
[ 'dateFormat' => \DATE_ATOM,
],
'themeId' =>
$themeId,
'controllerName' =>
(string) $controllerInfo->
getName(),
'controllerAction' =>
(string) $controllerInfo->
getAction(),
'context' =>
$context,