public function SocialEventManagersAddEnrolleeForm::uniqueMembers in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersAddEnrolleeForm.php \Drupal\social_event_managers\Form\SocialEventManagersAddEnrolleeForm::uniqueMembers()
- 10.3.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersAddEnrolleeForm.php \Drupal\social_event_managers\Form\SocialEventManagersAddEnrolleeForm::uniqueMembers()
- 10.0.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersAddEnrolleeForm.php \Drupal\social_event_managers\Form\SocialEventManagersAddEnrolleeForm::uniqueMembers()
- 10.2.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersAddEnrolleeForm.php \Drupal\social_event_managers\Form\SocialEventManagersAddEnrolleeForm::uniqueMembers()
Public function to validate members against enrollments.
File
- modules/
social_features/ social_event/ modules/ social_event_managers/ src/ Form/ SocialEventManagersAddEnrolleeForm.php, line 301
Class
- SocialEventManagersAddEnrolleeForm
- Class SocialEventTypeSettings.
Namespace
Drupal\social_event_managers\FormCode
public function uniqueMembers($element, &$form_state, $complete_form) {
// Call the autocomplete function to make sure enrollees are unique.
SocialEnrollmentAutocomplete::validateEntityAutocomplete($element, $form_state, $complete_form, TRUE);
}