lib/Collection/QueryType/Handler/Traits/MainLocationFilterTrait.php
private function getMainLocationFilterCriteria(ParameterCollectionInterface $parameterCollection): ?Criterion
    {
        if ($parameterCollection->getParameter('only_main_locations')->getValue() !== true) {
            return null;
        }

        return new Criterion\Location\IsMainLocation(
            Criterion\Location\IsMainLocation::MAIN
        );
    }
private function getMainLocationFilterCriteria(ParameterCollectionInterface $parameterCollection): ?Criterion
    {
        if ($parameterCollection->getParameter('only_main_locations')->getValue() !== true) {
            return null;
        }

        return new Criterion\Location\IsMainLocation(
            Criterion\Location\IsMainLocation::MAIN
        );
    }
private function getMainLocationFilterCriteria ( ParameterCollectionInterface $ parameterCollection ) : ? Criterion { if ( $ parameterCollection -> getParameter ( 'only_main_locations' ) -> getValue ( ) !== true ) { return null ; } return new Criterion \ Location \ IsMainLocation ( Criterion \ Location \ IsMainLocation :: MAIN ) ; }
Returns the criteria used to filter content with main location only.
Returns the criteria used to filter content with main location only .