public function getContentForTwig($textQuery, array $parameters = [])
    {
        // fix BC break
        if (func_num_args() === 3) {
            $whereparameters = func_get_arg(2);
            if (is_array($whereparameters) && !empty($whereparameters)) {
                $parameters = array_merge($parameters, $whereparameters);
            }
        }
        return $this->recordsView->createView(
            $this->getContentByScope('frontend', $textQuery, $parameters)
        );
    }
public function getContentForTwig($textQuery, array $parameters = [])
    {
        // fix BC break
        if (func_num_args() === 3) {
            $whereparameters = func_get_arg(2);
            if (is_array($whereparameters) && !empty($whereparameters)) {
                $parameters = array_merge($parameters, $whereparameters);
            }
        }
        return $this->recordsView->createView(
            $this->getContentByScope('frontend', $textQuery, $parameters)
        );
    }
public function getContentForTwig ( $ textQuery , array $ parameters = [ ] ) { // fix BC break if ( func_num_args ( ) === 3 ) { $ whereparameters = func_get_arg ( 2 ) ; if ( is_array ( $ whereparameters ) && ! empty ( $ whereparameters ) ) { $ parameters = array_merge ( $ parameters , $ whereparameters ) ; } } return $ this -> recordsView -> createView ( $ this -> getContentByScope ( 'frontend' , $ textQuery , $ parameters ) ) ; }
Helper to be called from Twig that is passed via a TwigRecordsView rather than the raw records.

@param $textQuery
@param array $parameters

@return QueryResultset|null
Helper to be called from Twig that is passed via a TwigRecordsView rather than the raw records .