0 follower

Interface Yiisoft\Validator\PropertyTranslatorProviderInterface

Implemented byYiisoft\Validator\DataSet\ObjectDataSet

Provides optional implementation of {@see 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 Yiisoft\Validator\PropertyTranslatorInterface|null getPropertyTranslator ( )
return Yiisoft\Validator\PropertyTranslatorInterface|null

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

                public function getPropertyTranslator(): ?PropertyTranslatorInterface;