public function ValidatorBuilderInterface::setTranslator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ValidatorBuilderInterface.php \Symfony\Component\Validator\ValidatorBuilderInterface::setTranslator()
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 vendor/
symfony/ validator/ ValidatorBuilder.php - Sets the translator used for translating violation messages.
File
- vendor/
symfony/ validator/ ValidatorBuilderInterface.php, line 148
Class
- ValidatorBuilderInterface
- A configurable builder for ValidatorInterface objects.
Namespace
Symfony\Component\ValidatorCode
public function setTranslator(TranslatorInterface $translator);