src/Entity/CustomFilter.php
public function setFilterParameters($filterParameters)
    {
        if (!is_string($filterParameters)) {
            $this->filterParameters = json_encode($filterParameters);
        } else {
            $this->filterParameters = $filterParameters;
        }

        return $this;
    }
public function setFilterParameters($filterParameters)
    {
        if (!is_string($filterParameters)) {
            $this->filterParameters = json_encode($filterParameters);
        } else {
            $this->filterParameters = $filterParameters;
        }

        return $this;
    }
public function setFilterParameters ( $ filterParameters ) { if ( ! is_string ( $ filterParameters ) ) { $ this -> filterParameters = json_encode ( $ filterParameters ) ; } else { $ this -> filterParameters = $ filterParameters ; } return $ this ; }
Set filterParameters.

@param string|mixed $filterParameters

@return CustomFilter
Set filterParameters .