protected buildMessage ( Fuel\Validation\FieldInterface $field, Fuel\Validation\RuleInterface $rule, $value ) : string | ||
$field | Fuel\Validation\FieldInterface | |
$rule | Fuel\Validation\RuleInterface | |
리턴 | string |
protected function buildMessage(FieldInterface $field, RuleInterface $rule, $value)
{
// Build an array with all the token values
$tokens = array('name' => $field->getName(), 'label' => $field->getLabel(), 'value' => $value) + $rule->getMessageParameters();
return $this->processMessageTokens($tokens, $rule->getMessage());
}