Example #1
0
 /// <summary>
 ///     Validate the form
 /// </summary>
 public FurtherValidationResult ValidateForm(ContentModifierForm form,
                                             ContentFieldValidatorConfiguration config,
                                             ContentType contentType, ContentFieldDefinition fieldDefinition)
 {
     ValidateValidatorParams();
     return(Validate(form, config, contentType, fieldDefinition));
 }
Example #2
0
 /// <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);