You are here

public function ConstraintViolationBuilder::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

Overrides ConstraintViolationBuilderInterface::setTranslationDomain

See also

\Symfony\Component\Translation\TranslatorInterface

File

lib/Symfony/validator/Symfony/Component/Validator/Violation/ConstraintViolationBuilder.php, line 137

Class

ConstraintViolationBuilder
Default implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function setTranslationDomain($translationDomain) {
  $this->translationDomain = $translationDomain;
  return $this;
}