public function process(Request $request, RequestAttributes $requestAttributes)
{
if (!$request->get('_locale') && !$request->get('_portal')) {
return new RequestAttributes();
}
$portalInformations = $this->webspaceManager->findPortalInformationsByPortalKeyAndLocale($request->get('_portal'), $request->get('_locale'), $this->environment);
if (!$portalInformations) {
return new RequestAttributes();
}
return new RequestAttributes(['portalInformation' => reset($portalInformations)]);
}