You are here

public function ValidatorBuilderInterface::setTranslationDomain in Zircon Profile 8

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

1 method overrides ValidatorBuilderInterface::setTranslationDomain()
ValidatorBuilder::setTranslationDomain in vendor/symfony/validator/ValidatorBuilder.php
Sets the default translation domain of violation messages.

File

vendor/symfony/validator/ValidatorBuilderInterface.php, line 161

Class

ValidatorBuilderInterface
A configurable builder for ValidatorInterface objects.

Namespace

Symfony\Component\Validator

Code

public function setTranslationDomain($translationDomain);