protected function isPlatformUIRequest(Request $request)
    {
        if (mb_stripos($request->attributes->get('_route'), 'netgen_tags_admin') !== 0) {
            return false;
        }

        if (!$request->headers->has('X-PJAX') || !$request->isXmlHttpRequest()) {
            return false;
        }

        return true;
    }
protected function isPlatformUIRequest(Request $request)
    {
        if (mb_stripos($request->attributes->get('_route'), 'netgen_tags_admin') !== 0) {
            return false;
        }

        if (!$request->headers->has('X-PJAX') || !$request->isXmlHttpRequest()) {
            return false;
        }

        return true;
    }
protected function isPlatformUIRequest ( Request $ request ) { if ( mb_stripos ( $ request -> attributes -> get ( '_route' ) , 'netgen_tags_admin' ) !== 0 ) { return false ; } if ( ! $ request -> headers -> has ( 'X-PJAX' ) || ! $ request -> isXmlHttpRequest ( ) ) { return false ; } return true ; }
Returns if provided request is a Platform UI request.

@param \Symfony\Component\HttpFoundation\Request $request

@return bool
Returns if provided request is a Platform UI request .