0 follower

Interface Yiisoft\Validator\PropertyTranslatorProviderInterface

Implemented byYiisoft\Validator\DataSet\ObjectDataSet

Provides optional implementation of Yiisoft\Validator\PropertyTranslatorInterface for translation of property names.

Public Methods

Hide inherited methods

Method Description Defined By
getPropertyTranslator() Get property translator instance to use. Yiisoft\Validator\PropertyTranslatorProviderInterface

Method Details

Hide inherited methods

getPropertyTranslator() public abstract method

Get property translator instance to use.

See also \Yiisoft\Validator\Validator::$defaultPropertyTranslator (can be configured via constructor).

public abstract getPropertyTranslator( ): Yiisoft\Validator\PropertyTranslatorInterface|null
return Yiisoft\Validator\PropertyTranslatorInterface|null

Property translator instance to use. If null is returned, the validator uses default value configured.

                public function getPropertyTranslator(): ?PropertyTranslatorInterface;