/// <summary> /// Validate the form /// </summary> public FurtherValidationResult ValidateForm(ContentModifierForm form, ContentFieldValidatorConfiguration config, ContentType contentType, ContentFieldDefinition fieldDefinition) { ValidateValidatorParams(); return(Validate(form, config, contentType, fieldDefinition)); }
/// <summary> /// The validate function. /// </summary> /// <param name="form">The form to validate.</param> /// <param name="config">Validator configuration.</param> /// <param name="contentType">Content type that wants validation.</param> /// <param name="fieldDefinition">Content field definition related to this validation.</param> /// <returns>Validation result</returns> protected abstract FurtherValidationResult Validate(ContentModifierForm form, ContentFieldValidatorConfiguration config, ContentType contentType, ContentFieldDefinition fieldDefinition);