private function buildQueryDefinition(array $configuration, ContentView $view)
    {
        $parameters = $this->processParameters($configuration['parameters'], $view);

        $this->injectSupportedParameters($parameters, $configuration['query_type'], $view);

        return new QueryDefinition([
            'name' => $configuration['query_type'],
            'parameters' => $parameters,
            'useFilter' => $this->parameterProcessor->process($configuration['use_filter'], $view),
            'maxPerPage' => $this->parameterProcessor->process($configuration['max_per_page'], $view),
            'page' => $this->parameterProcessor->process($configuration['page'], $view),
        ]);
    }
private function buildQueryDefinition(array $configuration, ContentView $view)
    {
        $parameters = $this->processParameters($configuration['parameters'], $view);

        $this->injectSupportedParameters($parameters, $configuration['query_type'], $view);

        return new QueryDefinition([
            'name' => $configuration['query_type'],
            'parameters' => $parameters,
            'useFilter' => $this->parameterProcessor->process($configuration['use_filter'], $view),
            'maxPerPage' => $this->parameterProcessor->process($configuration['max_per_page'], $view),
            'page' => $this->parameterProcessor->process($configuration['page'], $view),
        ]);
    }
private function buildQueryDefinition ( array $ configuration , ContentView $ view ) { $ parameters = $ this -> processParameters ( $ configuration [ 'parameters' ] , $ view ) ; $ this -> injectSupportedParameters ( $ parameters , $ configuration [ 'query_type' ] , $ view ) ; return new QueryDefinition ( [ 'name' => $ configuration [ 'query_type' ] , 'parameters' => $ parameters , 'useFilter' => $ this -> parameterProcessor -> process ( $ configuration [ 'use_filter' ] , $ view ) , 'maxPerPage' => $ this -> parameterProcessor -> process ( $ configuration [ 'max_per_page' ] , $ view ) , 'page' => $ this -> parameterProcessor -> process ( $ configuration [ 'page' ] , $ view ) , ] ) ; }
Build QueryDefinition instance from the given arguments.

@param array $configuration
@param \Netgen\Bundle\EzPlatformSiteApiBundle\View\ContentView $view

@return \Netgen\Bundle\EzPlatformSiteApiBundle\QueryType\QueryDefinition
Build QueryDefinition instance from the given arguments .