protected function overrideFilter(array $flexFormConfiguration)
    {
        $filter = $this->getFilterFromFlexForm($flexFormConfiguration);
        unset($flexFormConfiguration['search']['query']['filter']);
        if (empty($filter)) {
            return $flexFormConfiguration;
        }

        return array_merge_recursive(
            $flexFormConfiguration,
            [
                'search' => [
                    'query' => [
                        'filter' => $filter,
                    ],
                ],
            ]
        );
    }
protected function overrideFilter(array $flexFormConfiguration)
    {
        $filter = $this->getFilterFromFlexForm($flexFormConfiguration);
        unset($flexFormConfiguration['search']['query']['filter']);
        if (empty($filter)) {
            return $flexFormConfiguration;
        }

        return array_merge_recursive(
            $flexFormConfiguration,
            [
                'search' => [
                    'query' => [
                        'filter' => $filter,
                    ],
                ],
            ]
        );
    }
protected function overrideFilter ( array $ flexFormConfiguration ) { $ filter = $ this -> getFilterFromFlexForm ( $ flexFormConfiguration ) ; unset ( $ flexFormConfiguration [ 'search' ] [ 'query' ] [ 'filter' ] ) ; if ( empty ( $ filter ) ) { return $ flexFormConfiguration ; } return array_merge_recursive ( $ flexFormConfiguration , [ 'search' => [ 'query' => [ 'filter' => $ filter , ] , ] , ] ) ; }
Override filter in configuration.

Will parse the filter from flex form structure and rewrite it as typoscript structure.

@param array $flexFormConfiguration

@return array
Override filter in configuration .