public function ValidatorBuilderInterface::setTranslationDomain in Plug 7
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
1 method overrides ValidatorBuilderInterface::setTranslationDomain()
- ValidatorBuilder::setTranslationDomain in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilder.php - Sets the default translation domain of violation messages.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidatorBuilderInterface.php, line 161
Class
- ValidatorBuilderInterface
- A configurable builder for ValidatorInterface objects.
Namespace
Symfony\Component\ValidatorCode
public function setTranslationDomain($translationDomain);