concrete/src/Validator/AbstractTranslatableValidator.php
protected function getErrorString($code, $value, $default = null)
    {
        if (array_key_exists($code, $this->translatable_errors)) {
            $resolver = $this->translatable_errors[$code];
            if ($resolver instanceof Closure) {
                return $resolver($this, $code, $value);
            } else {
                return $resolver;
            }
        }

        return $default;
    }
protected function getErrorString($code, $value, $default = null)
    {
        if (array_key_exists($code, $this->translatable_errors)) {
            $resolver = $this->translatable_errors[$code];
            if ($resolver instanceof Closure) {
                return $resolver($this, $code, $value);
            } else {
                return $resolver;
            }
        }

        return $default;
    }
protected function getErrorString ( $ code , $ value , $ default = null ) { if ( array_key_exists ( $ code , $ this -> translatable_errors ) ) { $ resolver = $ this -> translatable_errors [ $ code ] ; if ( $ resolver instanceof Closure ) { return $ resolver ( $ this , $ code , $ value ) ; } else { return $ resolver ; } } return $ default ; }
Get an error string given a code and a passed value.

@param int $code
@param mixed $value
@param mixed $default

@return string|mixed Returns a string or $default
Get an error string given a code and a passed value .