You are here

public function ConstraintViolationBuilderInterface::setTranslationDomain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface::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

See also

\Symfony\Component\Translation\TranslatorInterface

3 methods override ConstraintViolationBuilderInterface::setTranslationDomain()
ConstraintViolationBuilder::setTranslationDomain in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Sets the translation domain which should be used for translating the violation message.
ConstraintViolationBuilder::setTranslationDomain in core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php
Sets the translation domain which should be used for translating the violation message.
LegacyConstraintViolationBuilder::setTranslationDomain in vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php
Sets the translation domain which should be used for translating the violation message.

File

vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php, line 71

Class

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

Namespace

Symfony\Component\Validator\Violation

Code

public function setTranslationDomain($translationDomain);