class SharePointSearchWidget extends WidgetBase implements ContainerFactoryPluginInterface

Defines the 'field_sharepoint_search_link' field widget.

Properties

protected AuthenticationServiceInterface $authenticationService

The authentication service.

protected GraphService $graphService

The graph service.

Methods

__construct(string $plugin_id, mixed $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, AuthenticationServiceInterface $authenticationService, GraphService $graphService)

Constructs a SharePointSearchWidget object.

static 
create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state)

{@inheritdoc}

formElement(FieldItemListInterface $items, $delta, array $element, array $form, FormStateInterface $form_state)

{@inheritdoc}

massageFormValues(array $values, array $form, FormStateInterface $form_state)

{@inheritdoc}

Details

at line 58
__construct(string $plugin_id, mixed $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, AuthenticationServiceInterface $authenticationService, GraphService $graphService)

Constructs a SharePointSearchWidget object.

Parameters

string $plugin_id

The plugin ID.

mixed $plugin_definition

The plugin definition.

FieldDefinitionInterface $field_definition

The field definition.

array $settings

The widget settings.

array $third_party_settings

The third party settings.

AuthenticationServiceInterface $authenticationService

The authentication service.

GraphService $graphService

The graph service.

at line 67
static create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

{@inheritdoc}

Parameters

ContainerInterface $container
array $configuration
$plugin_id
$plugin_definition

at line 145
errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state)

{@inheritdoc}

Parameters

array $element
ConstraintViolationInterface $violation
array $form
FormStateInterface $form_state

at line 83
formElement(FieldItemListInterface $items, $delta, array $element, array $form, FormStateInterface $form_state)

{@inheritdoc}

Parameters

FieldItemListInterface $items
$delta
array $element
array $form
FormStateInterface $form_state

at line 152
massageFormValues(array $values, array $form, FormStateInterface $form_state)

{@inheritdoc}

Parameters

array $values
array $form
FormStateInterface $form_state