Zend\Validator\AbstractValidator::createMessage
Constructs and returns a validation failure message with the given message key and value.
Returns null if and only if $messageKey does not correspond to an existing template. If a translator is available and a translation exists for $messageKey, the translation will be used.
Signature
protected function createMessage(string
$messageKey,
string|array|object
$value )
Parameters
$messageKey
— string$value
— object
Returns
- string