Provides methods for managing multiple validators.
string
'default'
getValidator( string|null $name null )
Returns the validation rules tagged with $name.
If a $name argument has not been provided, the default validator will be returned. You can configure your default validator name in a DEFAULT_VALIDATOR
class constant.
$name
optional null Cake\Validation\Validator
hasValidator( string $name )
Checks whether or not a validator has been set.
$name
setValidator( string $name , Cake\Validation\Validator $validator )
This method stores a custom validator under the given name.
$name
Cake\Validation\Validator
$validator
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.5/class-Cake.Validation.ValidatorAwareInterface.html