You are here

public function LegacyConstraintViolationBuilder::setTranslationDomain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder::setTranslationDomain()

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

vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php, line 106

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;
}