Interface Yiisoft\Validator\AfterInitAttributeEventInterface
An optional interface for rules to implement. It provides {@see afterInitAttribute()} method-based event allowing to execute custom code after a rule instance was created from a PHP attribute either when using {@see ObjectDataSet}, {@see AttributesRulesProvider} or {@see 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 {@see ObjectDataSet}, {@see AttributesRulesProvider} or {@see 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 {@see ObjectDataSet}, {@see AttributesRulesProvider} or {@see ObjectParser} directly.
| public abstract void afterInitAttribute ( object $object ) | ||
| $object | object |
An object containing rules within attributes. |
public function afterInitAttribute(object $object): void;
Signup or Login in order to comment.