You are here

public function ValidatorBuilderInterface::setTranslator in Plug 7

Sets the translator used for translating violation messages.

Parameters

TranslatorInterface $translator The translator instance:

Return value

ValidatorBuilderInterface The builder object

1 method overrides ValidatorBuilderInterface::setTranslator()
ValidatorBuilder::setTranslator in lib/Symfony/validator/Symfony/Component/Validator/ValidatorBuilder.php
Sets the translator used for translating violation messages.

File

lib/Symfony/validator/Symfony/Component/Validator/ValidatorBuilderInterface.php, line 148

Class

ValidatorBuilderInterface
A configurable builder for ValidatorInterface objects.

Namespace

Symfony\Component\Validator

Code

public function setTranslator(TranslatorInterface $translator);