public function afterGetFilters(
        RequestMapper $subject,
        $result,
        ContainerConfigurationInterface $containerConfiguration,
        SearchCriteriaInterface $searchCriteria
    ) {
        if ($this->isEnabled($containerConfiguration)) {
            $filters = [];

            foreach ($result as $fieldName => $filterValue) {
                $fieldName = $this->getMappingField($containerConfiguration, $fieldName);
                $filters[$fieldName] = $filterValue;
            }

            $result = $filters;

            if ($containerConfiguration->getName() === 'catalog_view_container') {
                $this->updateSearchContext(
                    $containerConfiguration->getStoreId(),
                    $this->getCurrentCategoryId($containerConfiguration, $searchCriteria)
                );
            }
        }

        return $result;
    }
public function afterGetFilters(
        RequestMapper $subject,
        $result,
        ContainerConfigurationInterface $containerConfiguration,
        SearchCriteriaInterface $searchCriteria
    ) {
        if ($this->isEnabled($containerConfiguration)) {
            $filters = [];

            foreach ($result as $fieldName => $filterValue) {
                $fieldName = $this->getMappingField($containerConfiguration, $fieldName);
                $filters[$fieldName] = $filterValue;
            }

            $result = $filters;

            if ($containerConfiguration->getName() === 'catalog_view_container') {
                $this->updateSearchContext(
                    $containerConfiguration->getStoreId(),
                    $this->getCurrentCategoryId($containerConfiguration, $searchCriteria)
                );
            }
        }

        return $result;
    }
public function afterGetFilters ( RequestMapper $ subject , $ result , ContainerConfigurationInterface $ containerConfiguration , SearchCriteriaInterface $ searchCriteria ) { if ( $ this -> isEnabled ( $ containerConfiguration ) ) { $ filters = [ ] ; foreach ( $ result as $ fieldName => $ filterValue ) { $ fieldName = $ this -> getMappingField ( $ containerConfiguration , $ fieldName ) ; $ filters [ $ fieldName ] = $ filterValue ; } $ result = $ filters ; if ( $ containerConfiguration -> getName ( ) === 'catalog_view_container' ) { $ this -> updateSearchContext ( $ containerConfiguration -> getStoreId ( ) , $ this -> getCurrentCategoryId ( $ containerConfiguration , $ searchCriteria ) ) ; } } return $ result ; }
Post process catalog filters.

@SuppressWarnings(PHPMD.UnusedFormalParameter)

@param RequestMapper                   $subject                Request mapper.
@param array                           $result                 Original filters.
@param ContainerConfigurationInterface $containerConfiguration Container configuration.
@param SearchCriteriaInterface         $searchCriteria         Search criteria.

@return array[]
Post process catalog filters .