final class OutlookCalendarSettingsForm extends ConfigFormBase

Configure Microsoft 365 - Outlook Calendar settings for this site.

Properties

protected string[] $calendarFields

A list of calendar fields.

protected OutlookCalendarSaveEventService $eventService

The event service.

Methods

__construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, OutlookCalendarSaveEventService $eventService)

No description

array
buildForm(array $form, FormStateInterface $form_state)

{@inheritdoc}

static 
create(ContainerInterface $container)

{@inheritdoc}

array
getEditableConfigNames()

{@inheritdoc}

void
getEntityTypeFormFieldsCheckboxes(array $form, string $contentType)

Generate the entity type fields.

static array
getEntityTypeOptions()

Helper function to populate the content type dropdown.

string
getFormId()

{@inheritdoc}

array
promptCallback(array $form, FormStateInterface $form_state)

Callback for the select element.

void
submitForm(array $form, FormStateInterface $form_state)

{@inheritdoc}

Details

at line 32
__construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, OutlookCalendarSaveEventService $eventService)

No description

Parameters

ConfigFactoryInterface $config_factory
TypedConfigManagerInterface $typed_config_manager
OutlookCalendarSaveEventService $eventService

at line 67
array buildForm(array $form, FormStateInterface $form_state)

{@inheritdoc}

Parameters

array $form
FormStateInterface $form_state

Return Value

array

at line 42
static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

at line 60
protected array getEditableConfigNames()

{@inheritdoc}

Return Value

array

at line 173
void getEntityTypeFormFieldsCheckboxes(array $form, string $contentType)

Generate the entity type fields.

Parameters

array $form

The form array. Passed by reference.

string $contentType

The content type.

Return Value

void

at line 150
static array getEntityTypeOptions()

Helper function to populate the content type dropdown.

Return Value

array

Dropdown options.

at line 53
string getFormId()

{@inheritdoc}

Return Value

string

at line 200
array promptCallback(array $form, FormStateInterface $form_state)

Callback for the select element.

Parameters

array $form

An associative array containing the structure of the form.

FormStateInterface $form_state

The current state of the form.

Return Value

array

The form structure.

at line 125
void submitForm(array $form, FormStateInterface $form_state)

{@inheritdoc}

Parameters

array $form
FormStateInterface $form_state

Return Value

void