public function restoreFilter(string $filter)
    {
        $position = \array_search($filter, $this->disabledFilters, true);
        if ($position === false) {
            return;
        }

        $this->getFilterCollection()->enable($filter);

        \array_splice($this->disabledFilters, $position, 1);
    }
public function restoreFilter(string $filter)
    {
        $position = \array_search($filter, $this->disabledFilters, true);
        if ($position === false) {
            return;
        }

        $this->getFilterCollection()->enable($filter);

        \array_splice($this->disabledFilters, $position, 1);
    }
public function restoreFilter ( string $ filter ) { $ position = \ array_search ( $ filter , $ this -> disabledFilters , true ) ; if ( $ position === false ) { return ; } $ this -> getFilterCollection ( ) -> enable ( $ filter ) ; \ array_splice ( $ this -> disabledFilters , $ position , 1 ) ; }
Restore disabled filter.

@param string $filter
Restore disabled filter .