final class MyMailController extends ControllerBase

Controller that renders a list of emails belonging to the logged in user.

Properties

protected GetMailServiceInterface $getMailService

Drupal\o365_outlook_mail\GetMailServiceInterface definition.

Methods

__construct(GetMailServiceInterface $getMailService)

Constructs a new MyMailController object.

static 
create(ContainerInterface $container)

{@inheritdoc}

array
getMail()

Get the latest mails of the user.

Details

at line 27
__construct(GetMailServiceInterface $getMailService)

Constructs a new MyMailController object.

Parameters

GetMailServiceInterface $getMailService

The GetMailServiceInterface definition.

at line 34
static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

at line 49
array getMail()

Get the latest mails of the user.

Return Value

array

The render array with the list of mails.

Exceptions

TempStoreException
IdentityProviderException
GraphException
Exception