private function SocialBulkGroupInvitation::getSubmittedEmails in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
- 10.0.x modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
- 10.1.x modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
- 10.2.x modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
Get array of submited emails.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array List of emails to invite .
1 call to SocialBulkGroupInvitation::getSubmittedEmails()
- SocialBulkGroupInvitation::submitForm in modules/
social_features/ social_group/ modules/ social_group_invite/ src/ Form/ SocialBulkGroupInvitation.php - Custom form submit.
File
- modules/
social_features/ social_group/ modules/ social_group_invite/ src/ Form/ SocialBulkGroupInvitation.php, line 414
Class
- SocialBulkGroupInvitation
- Class SocialBulkGroupInvitation.
Namespace
Drupal\social_group_invite\FormCode
private function getSubmittedEmails(FormStateInterface $form_state) {
return array_map('trim', array_unique(explode("\r\n", trim($form_state
->getValue('email_address')))));
}