Interface ValidatorManagerInterface

Interface ValidatorManagerInterface A generic validator manager interface that enables validating against many validators at once

Concrete\Core\Validator\ValidatorManagerInterface implements Concrete\Core\Validator\ValidatorInterface

Direct known implementers


Namespace: Concrete\Core\Validator
Package: Concrete\Core\Validator
Located at src/Validator/ValidatorManagerInterface.php

Methods summary

public Concrete\Core\Validator\ValidatorInterface[]
# getValidators( )

Get a list of all validators

public boolean
# hasValidator( string $handle )

Does a validator with this handle exist

# setValidator( string $handle, Concrete\Core\Validator\ValidatorInterface $validator = null )

Add a validator to the stack. Validators are unique by handle, so adding a validator with the same handle as a validator in the stack replaces the old validator with the new one.