/**
* Gets a Rule's message and processes that with various tokens
*
* @param FieldInterface $field
* @param RuleInterface $rule
*
* @return 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());
}