Interface TranslatableValidatorInterface

Interface TranslatableValidatorInterface A modifier to the standard validator interface that enables translatable requirements and errors

Concrete\Core\Validator\TranslatableValidatorInterface implements Concrete\Core\Validator\ValidatorInterface
Namespace: Concrete\Core\Validator
Package: Concrete\Core\Validator
Located at src/Validator/TranslatableValidatorInterface.php

Methods summary

public
# setRequirementString( integer $code, string|Closure $message )

Set the requirement string to a mixed value Closure format: function(TranslatableValidatorInterface $validator, int $code): string

public
# setErrorString( integer $code, string|Closure $message )

Set the error string to a string or to a closure Closure format: function(TranslatableValidatorInterface $validator, int $code, mixed $passed): string