GetMailService
class GetMailService implements GetMailServiceInterface
This service retrieves emails for the currently logged in user.
Traits
StringTranslationTrait
Properties
| protected DateFormatterInterface | $dateFormatter | The date formatter service. |
|
| protected GraphService | $o365Graph | Drupal\o365\GraphService definition. |
Methods
__construct(GraphService $o365_graph, DateFormatterInterface $dateFormatter)
Constructs a new GetMailService object.
array
generateMailList(array $mailData, string $type = 'page')
Generate a rendered list of emails.
array|bool
getMail(int $limit = 10, array $fields = [])
Get the users mails.
array|bool
getUnreadMail(int $limit = 5, array $fields = [])
Get the users unread mails.
Details
at line 41
__construct(GraphService $o365_graph, DateFormatterInterface $dateFormatter)
Constructs a new GetMailService object.
at line 85
array
generateMailList(array $mailData, string $type = 'page')
Generate a rendered list of emails.
at line 49
array|bool
getMail(int $limit = 10, array $fields = [])
Get the users mails.
at line 67
array|bool
getUnreadMail(int $limit = 5, array $fields = [])
Get the users unread mails.