public function getFiltersComponent(SearchQuery $searchQuery)
    {
        $criteriaComponent = $this->getCriteriaComponent($searchQuery);

        $components = array_merge(
            $this->getRequireFiltersComponent($searchQuery),
            $this->getExcludeFiltersComponent($searchQuery)
        );

        if ($criteriaComponent !== null) {
            $components[] = $criteriaComponent;
        }

        return $components;
    }
public function getFiltersComponent(SearchQuery $searchQuery)
    {
        $criteriaComponent = $this->getCriteriaComponent($searchQuery);

        $components = array_merge(
            $this->getRequireFiltersComponent($searchQuery),
            $this->getExcludeFiltersComponent($searchQuery)
        );

        if ($criteriaComponent !== null) {
            $components[] = $criteriaComponent;
        }

        return $components;
    }
public function getFiltersComponent ( SearchQuery $ searchQuery ) { $ criteriaComponent = $ this -> getCriteriaComponent ( $ searchQuery ) ; $ components = array_merge ( $ this -> getRequireFiltersComponent ( $ searchQuery ) , $ this -> getExcludeFiltersComponent ( $ searchQuery ) ) ; if ( $ criteriaComponent !== null ) { $ components [ ] = $ criteriaComponent ; } return $ components ; }
Get all filter conditions for this search

@param SearchQuery $searchQuery
@return array
@throws \Exception
Get all filter conditions for this search