FormValidatorInterface
interface FormValidatorInterface (View source)
Provides an interface for validating form submissions.
Methods
executeValidateHandlers($form, FormStateInterface $form_state)
Executes custom validation handlers for a given form.
validateForm($form_id, $form, FormStateInterface $form_state)
Validates user-submitted form data in the $form_state.
$this
setInvalidTokenError(FormStateInterface $form_state)
Sets a form_token error on the given form state.
Details
executeValidateHandlers($form, FormStateInterface $form_state)
Executes custom validation handlers for a given form.
Button-specific handlers are checked first. If none exist, the function falls back to form-level handlers.
validateForm($form_id, $form, FormStateInterface $form_state)
Validates user-submitted form data in the $form_state.
$this
setInvalidTokenError(FormStateInterface $form_state)
Sets a form_token error on the given form state.