getActiveValidators() public method
Returns the validators applicable to the current $scenario.
public yii\validators\Validator[] getActiveValidators ( $attribute = null ) | ||
---|---|---|
$attribute | string |
The name of the attribute whose applicable validators should be returned. If this is null, the validators for ALL attributes in the model will be returned. |
return | yii\validators\Validator[] |
The validators applicable to the current $scenario. |
Please login to continue.