bundles/BlockManagerBundle/EventListener/ContextListener.php
private function getUriContext(Request $request): array
    {
        $context = $request->query->get('ngbmContext');
        $context = is_array($context) ? $context : [];

        if (!$this->uriSigner->check($this->getUri($request))) {
            return [];
        }

        return $context;
    }
private function getUriContext(Request $request): array
    {
        $context = $request->query->get('ngbmContext');
        $context = is_array($context) ? $context : [];

        if (!$this->uriSigner->check($this->getUri($request))) {
            return [];
        }

        return $context;
    }
private function getUriContext ( Request $ request ) : array { $ context = $ request -> query -> get ( 'ngbmContext' ) ; $ context = is_array ( $ context ) ? $ context : [ ] ; if ( ! $ this -> uriSigner -> check ( $ this -> getUri ( $ request ) ) ) { return [ ] ; } return $ context ; }
Validates and returns the array with context information filled from the URI.
Validates and returns the array with context information filled from the URI .