Neos\Flow\Validation\Validator\AbstractCompositeValidator::removeValidator PHP Метод

removeValidator() публичный Метод

Removes the specified validator.
public removeValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator )
$validator Neos\Flow\Validation\Validator\ValidatorInterface The validator to remove
    public function removeValidator(ValidatorInterface $validator)
    {
        if (!$this->validators->contains($validator)) {
            throw new NoSuchValidatorException('Cannot remove validator because its not in the conjunction.', 1207020177);
        }
        $this->validators->detach($validator);
    }