You are here

public function ValidatorBuilder::setTranslationDomain in Zircon Profile 8

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

Sets the default translation domain of violation messages.

The same message can have different translations in different domains. Pass the domain that is used for violation messages by default to this method.

Parameters

string $translationDomain The translation domain of the violation messages:

Return value

ValidatorBuilderInterface The builder object

Overrides ValidatorBuilderInterface::setTranslationDomain

File

vendor/symfony/validator/ValidatorBuilder.php, line 288

Class

ValidatorBuilder
The default implementation of {@link ValidatorBuilderInterface}.

Namespace

Symfony\Component\Validator

Code

public function setTranslationDomain($translationDomain) {
  $this->translationDomain = $translationDomain;
  return $this;
}