public function PrivateMessageMailer::send in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.2 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.3 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.4 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.5 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.6 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 8.7 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 10.3.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 10.0.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 10.1.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
- 10.2.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer::send()
Send a private message notification email.
Parameters
\Drupal\private_message\Entity\PrivateMessageInterface $message: The message.
\Drupal\private_message\Entity\PrivateMessageThreadInterface $thread: The message thread.
\Drupal\user\UserInterface[] $members: The message members.
Overrides PrivateMessageMailer::send
File
- modules/
social_features/ social_private_message/ src/ Service/ PrivateMessageMailer.php, line 18
Class
- PrivateMessageMailer
- A service class for sending notification emails for private messages.
Namespace
Drupal\social_private_message\ServiceCode
public function send(PrivateMessageInterface $message, PrivateMessageThreadInterface $thread, array $members = []) {
foreach ($members as $id => $member) {
if (!$member instanceof UserInterface) {
unset($members[$id]);
}
}
parent::send($message, $thread, $members);
}