public function getFilters(ContainerConfigurationInterface $containerConfiguration, SearchCriteriaInterface $searchCriteria)
    {
        $filters = [];

        foreach ($searchCriteria->getFilterGroups() ?? [] as $filterGroup) {
            foreach ($filterGroup->getFilters() ?? [] as $filter) {
                if ($filter->getField() != "search_term") {
                    $filters[$filter->getField()][$filter->getConditionType()] = $filter->getValue();
                }
            }
        }

        return $filters;
    }
public function getFilters(ContainerConfigurationInterface $containerConfiguration, SearchCriteriaInterface $searchCriteria)
    {
        $filters = [];

        foreach ($searchCriteria->getFilterGroups() ?? [] as $filterGroup) {
            foreach ($filterGroup->getFilters() ?? [] as $filter) {
                if ($filter->getField() != "search_term") {
                    $filters[$filter->getField()][$filter->getConditionType()] = $filter->getValue();
                }
            }
        }

        return $filters;
    }
public function getFilters ( ContainerConfigurationInterface $ containerConfiguration , SearchCriteriaInterface $ searchCriteria ) { $ filters = [ ] ; foreach ( $ searchCriteria -> getFilterGroups ( ) ?? [ ] as $ filterGroup ) { foreach ( $ filterGroup -> getFilters ( ) ?? [ ] as $ filter ) { if ( $ filter -> getField ( ) != "search_term" ) { $ filters [ $ filter -> getField ( ) ] [ $ filter -> getConditionType ( ) ] = $ filter -> getValue ( ) ; } } } return $ filters ; }
Extract filters from the search criteria.

@SuppressWarnings(PHPMD.UnusedFormalParameter)

@param ContainerConfigurationInterface $containerConfiguration Container config.
@param SearchCriteriaInterface         $searchCriteria         Search criteria.

@return array
Extract filters from the search criteria .