You are here

private function SocialBulkGroupInvitation::getSubmittedEmails in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
  2. 10.3.x modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
  3. 10.1.x modules/social_features/social_group/modules/social_group_invite/src/Form/SocialBulkGroupInvitation.php \Drupal\social_group_invite\Form\SocialBulkGroupInvitation::getSubmittedEmails()
  4. 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\Form

Code

private function getSubmittedEmails(FormStateInterface $form_state) {
  return array_map('trim', array_unique(explode("\r\n", trim($form_state
    ->getValue('email_address')))));
}