public function ConstraintViolationBuilder::setTranslationDomain in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::setTranslationDomain()
- 8 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::setTranslationDomain()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::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/ ConstraintViolationBuilder.php, line 138
Class
- ConstraintViolationBuilder
- Default implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setTranslationDomain($translationDomain) {
$this->translationDomain = $translationDomain;
return $this;
}