You are here

public function ConstraintViolationBuilderInterface::setTranslationDomain in Plug 7

Sets the translation domain which should be used for translating the violation message.

Parameters

string $translationDomain The translation domain:

Return value

ConstraintViolationBuilderInterface This builder

See also

\Symfony\Component\Translation\TranslatorInterface

2 methods override ConstraintViolationBuilderInterface::setTranslationDomain()
ConstraintViolationBuilder::setTranslationDomain in lib/Symfony/validator/Symfony/Component/Validator/Violation/ConstraintViolationBuilder.php
Sets the translation domain which should be used for translating the violation message.
LegacyConstraintViolationBuilder::setTranslationDomain in lib/Symfony/validator/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php
Sets the translation domain which should be used for translating the violation message.

File

lib/Symfony/validator/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php, line 70

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function setTranslationDomain($translationDomain);