Sulu\Component\Webspace\Analyzer\Attributes\ParameterRequestProcessor::process PHP Method

process() public method

public process ( Request $request, RequestAttributes $requestAttributes )
$request Symfony\Component\HttpFoundation\Request
$requestAttributes RequestAttributes
    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)]);
    }
ParameterRequestProcessor