You are here

public function LegacyConstraintViolationBuilder::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/LegacyConstraintViolationBuilder.php, line 104

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function setTranslationDomain($translationDomain) {

  // can't be set in the old API
  return $this;
}