public static function MassContactMessageConfirmForm::processRecipients in Mass Contact 8
Batch processor for sending the message to recipients.
Parameters
array $recipients: An array of recipient user IDs.
\Drupal\mass_contact\Entity\MassContactMessageInterface $message: The mass contact message.
array $configuration: The configuration.
File
- src/
Form/ MassContactMessageConfirmForm.php, line 315
Class
- MassContactMessageConfirmForm
- Form object for the Mass Contact Confirm form.
Namespace
Drupal\mass_contact\FormCode
public static function processRecipients(array $recipients, MassContactMessageInterface $message, array $configuration) {
/** @var \Drupal\mass_contact\MassContactInterface $mass_contact */
$mass_contact = \Drupal::service('mass_contact');
$mass_contact
->sendMessage($recipients, $message, $configuration);
}