Zend\Validator\ValidatorChain::prependValidator
Adds a validator to the beginning of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
Signature
public function prependValidator(ValidatorInterface
$validator,
[bool
$breakChainOnFailure = false] )
Parameters
$validator
— Zend\Validator\ValidatorInterface
$breakChainOnFailure
— object
Returns
- ValidatorChain
- Provides a fluent interface