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

        $sections = $parameterCollection->getParameter('sections')->getValue() ?? [];
        if (count($sections) === 0) {
            return null;
        }

        return new Criterion\SectionId($this->getSectionIds($sections));
    }
private function getSectionFilterCriteria(ParameterCollectionInterface $parameterCollection): ?Criterion
    {
        if ($parameterCollection->getParameter('filter_by_section')->getValue() !== true) {
            return null;
        }

        $sections = $parameterCollection->getParameter('sections')->getValue() ?? [];
        if (count($sections) === 0) {
            return null;
        }

        return new Criterion\SectionId($this->getSectionIds($sections));
    }
private function getSectionFilterCriteria ( ParameterCollectionInterface $ parameterCollection ) : ? Criterion { if ( $ parameterCollection -> getParameter ( 'filter_by_section' ) -> getValue ( ) !== true ) { return null ; } $ sections = $ parameterCollection -> getParameter ( 'sections' ) -> getValue ( ) ?? [ ] ; if ( count ( $ sections ) === 0 ) { return null ; } return new Criterion \ SectionId ( $ this -> getSectionIds ( $ sections ) ) ; }
Returns the criteria used to filter content by section.
Returns the criteria used to filter content by section .