OutlookCalendarSaveEventService
class OutlookCalendarSaveEventService
Service that handles to saving of events in Outlook.
Properties
| protected ImmutableConfig | $config | The module config. |
|
| protected EmailValidatorInterface | $emailValidator | The email validator. |
|
| protected EntityFieldManagerInterface | $entityFieldManager | The entity field manager. |
|
| protected GraphService | $graphService | The o365 Graph service. |
|
| protected MessengerInterface | $messenger | The Drupal messenger. |
Methods
__construct(GraphService $graphService, ConfigFactoryInterface $configFactory, EmailValidatorInterface $emailValidator, MessengerInterface $messenger, EntityFieldManagerInterface $entityFieldManager)
Constructor for the OutlookCalendarSaveEventService service.
bool|string
addEvent(FieldableEntityInterface $entity, string $attendees = '', bool $returnLink = FALSE)
Add the event to Outlook.
array
getCalendarFormFields()
Generate the calendar form fields.
array
getEntityTypeFields(string $contentType)
Get all fields in a certain content type.
Details
at line 70
__construct(GraphService $graphService, ConfigFactoryInterface $configFactory, EmailValidatorInterface $emailValidator, MessengerInterface $messenger, EntityFieldManagerInterface $entityFieldManager)
Constructor for the OutlookCalendarSaveEventService service.
at line 162
bool|string
addEvent(FieldableEntityInterface $entity, string $attendees = '', bool $returnLink = FALSE)
Add the event to Outlook.
at line 84
array
getCalendarFormFields()
Generate the calendar form fields.
at line 121
array
getEntityTypeFields(string $contentType)
Get all fields in a certain content type.