src/Form/Element/Element.php
public function addFilter($filter, $method = null, ...$params)
    {
        if (!$this->hasFilterer()) {
            $this->setFilterer(configurator()->build('form.filterer.class'));
        }

        call_user_func_array([$this->getFilterer(), 'addFilter'], func_get_args());
        return $this;
    }
public function addFilter($filter, $method = null, ...$params)
    {
        if (!$this->hasFilterer()) {
            $this->setFilterer(configurator()->build('form.filterer.class'));
        }

        call_user_func_array([$this->getFilterer(), 'addFilter'], func_get_args());
        return $this;
    }
public function addFilter ( $ filter , $ method = null , ... $ params ) { if ( ! $ this -> hasFilterer ( ) ) { $ this -> setFilterer ( configurator ( ) -> build ( 'form.filterer.class' ) ) ; } call_user_func_array ( [ $ this -> getFilterer ( ) , 'addFilter' ] , func_get_args ( ) ) ; return $ this ; }
Ajoute un filtre

@param $filter
@param null $method
@return $this
Ajoute un filtre