lib/Collection/QueryType/Handler/Traits/QueryTypeFilterTrait.php
private function getQueryTypeFilterCriteria(ParameterCollectionInterface $parameterCollection, Location $parentLocation): ?Criterion
    {
        if ($parameterCollection->getParameter('query_type')->getValue() !== 'list') {
            return null;
        }

        return new Criterion\Location\Depth(
            Criterion\Operator::EQ,
            $parentLocation->depth + 1
        );
    }
private function getQueryTypeFilterCriteria(ParameterCollectionInterface $parameterCollection, Location $parentLocation): ?Criterion
    {
        if ($parameterCollection->getParameter('query_type')->getValue() !== 'list') {
            return null;
        }

        return new Criterion\Location\Depth(
            Criterion\Operator::EQ,
            $parentLocation->depth + 1
        );
    }
private function getQueryTypeFilterCriteria ( ParameterCollectionInterface $ parameterCollection , Location $ parentLocation ) : ? Criterion { if ( $ parameterCollection -> getParameter ( 'query_type' ) -> getValue ( ) !== 'list' ) { return null ; } return new Criterion \ Location \ Depth ( Criterion \ Operator :: EQ , $ parentLocation -> depth + 1 ) ; }
Returns the criteria used to filter content with one of the supported query types.
Returns the criteria used to filter content with one of the supported query types .