You are here

public function ValidatorBuilder::setTranslationDomain in Plug 7

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

lib/Symfony/validator/Symfony/Component/Validator/ValidatorBuilder.php, line 296

Class

ValidatorBuilder
The default implementation of {@link ValidatorBuilderInterface}.

Namespace

Symfony\Component\Validator

Code

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