Get a validator for a given data type. Returns a validator implementing
the ValidatorInterface or NULL if no validator
could be resolved.
public createValidator ( string $validatorType, array $validatorOptions = [] ) : Neos\Flow\Validation\Validator\ValidatorInterface | ||
$validatorType | string | Either one of the built-in data types or fully qualified validator class name |
$validatorOptions | array | Options to be passed to the validator |
return | Neos\Flow\Validation\Validator\ValidatorInterface |