function ConstraintViolationBuilderInterface::setTranslationDomain
Sets the translation domain which should be used for translating the violation message.
Parameters
string $translationDomain The translation domain:
Return value
$this
See also
\Symfony\Contracts\Translation\TranslatorInterface
2 methods override ConstraintViolationBuilderInterface::setTranslationDomain()
- ConstraintViolationBuilder::setTranslationDomain in core/
lib/ Drupal/ Core/ Validation/ ConstraintViolationBuilder.php - Sets the translation domain which should be used for translating the violation message.
- ConstraintViolationBuilder::setTranslationDomain in vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilder.php - Sets the translation domain which should be used for translating the violation message.
File
-
vendor/
symfony/ validator/ Violation/ ConstraintViolationBuilderInterface.php, line 74
Class
- ConstraintViolationBuilderInterface
- Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.
Namespace
Symfony\Component\Validator\ViolationCode
public function setTranslationDomain(string $translationDomain) : static;