src/Middleware/DetectLocaleMiddleware.php
protected function getParamLocale(HTTPRequest $request)
    {
        $queryParam = FluentDirectorExtension::config()->get('query_param');
        $locale = (string)($request->param($queryParam) ?: $request->requestVar($queryParam));
        return $locale;
    }
protected function getParamLocale(HTTPRequest $request)
    {
        $queryParam = FluentDirectorExtension::config()->get('query_param');
        $locale = (string)($request->param($queryParam) ?: $request->requestVar($queryParam));
        return $locale;
    }
protected function getParamLocale ( HTTPRequest $ request ) { $ queryParam = FluentDirectorExtension :: config ( ) -> get ( 'query_param' ) ; $ locale = ( string ) ( $ request -> param ( $ queryParam ) ? : $ request -> requestVar ( $ queryParam ) ) ; return $ locale ; }
Get locale from the query_param

@param HTTPRequest $request
@return mixed
Get locale from the query_param