ValidatorBuilder::setTranslationDomain()

ValidatorBuilderInterface setTranslationDomain(string $translationDomain)

Sets the default translation domain of violation messages.

The same message can have different translations in different domains. Pass the domain that is used for violation messages by default to this method.

Parameters

string $translationDomain The translation domain of the violation messages

Return Value

ValidatorBuilderInterface The builder object
doc_Symfony
2016-10-28 06:36:42
Comments
Leave a Comment

Please login to continue.