Interface Yiisoft\Validator\AfterInitAttributeEventInterface
An optional interface for rules to implement. It provides afterInitAttribute() method-based event allowing to execute custom code after a rule instance was created from a PHP attribute either when using ObjectDataSet, Yiisoft\Validator\RulesProvider\AttributesRulesProvider or ObjectParser directly.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| afterInitAttribute() | Method-based event allowing to execute custom code after a rule instance was created from a PHP attribute when using ObjectDataSet, Yiisoft\Validator\RulesProvider\AttributesRulesProvider or ObjectParser directly. | Yiisoft\Validator\AfterInitAttributeEventInterface |
Method Details
Method-based event allowing to execute custom code after a rule instance was created from a PHP attribute when using ObjectDataSet, Yiisoft\Validator\RulesProvider\AttributesRulesProvider or ObjectParser directly.
| public abstract afterInitAttribute( object $object ): void | ||
| $object | object |
An object containing rules within attributes. |
public function afterInitAttribute(object $object): void;
Signup or Login in order to comment.