public function TeamInvitationForm::validateForm in Apigee Edge 8
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormBase::validateForm
File
- modules/
apigee_edge_teams/ src/ Form/ TeamInvitationForm.php, line 110
Class
- TeamInvitationForm
- Provides settings form for team_invitation..
Namespace
Drupal\apigee_edge_teams\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
if ((int) $form_state
->getValue('team_invitation_expiry_days') < 1) {
$form_state
->setErrorByName('team_invitation_expiry_days', $this
->t('Expiry days must be 1 or more days.'));
}
parent::validateForm($form, $form_state);
}