class PrivateMessageMailer in Open Social 8.7
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
- 8.2 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 8.3 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 8.4 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 8.5 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 8.6 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 8.8 modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 10.3.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 10.0.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 10.1.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
- 10.2.x modules/social_features/social_private_message/src/Service/PrivateMessageMailer.php \Drupal\social_private_message\Service\PrivateMessageMailer
A service class for sending notification emails for private messages.
Hierarchy
- class \Drupal\private_message\Service\PrivateMessageMailer implements PrivateMessageMailerInterface
- class \Drupal\social_private_message\Service\PrivateMessageMailer
Expanded class hierarchy of PrivateMessageMailer
File
- modules/
social_features/ social_private_message/ src/ Service/ PrivateMessageMailer.php, line 13
Namespace
Drupal\social_private_message\ServiceView source
class PrivateMessageMailer extends PrivateMessageMailerBase {
/**
* {@inheritdoc}
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMessageMailer:: |
private | property | The configuration factory service. | |
PrivateMessageMailer:: |
private | property | The current user. | |
PrivateMessageMailer:: |
private | property | The mail manager service. | |
PrivateMessageMailer:: |
private | property | The private message service. | |
PrivateMessageMailer:: |
private | property | The user data service. | |
PrivateMessageMailer:: |
public | function |
Send a private message notification email. Overrides PrivateMessageMailer:: |
|
PrivateMessageMailer:: |
private | function | Determines if the message should be sent. | |
PrivateMessageMailer:: |
public | function | Constructs a new PrivateMessageMailer object. |