final class O365SharepointFieldController extends ControllerBase

Returns responses for Microsoft 365 - SharePoint search Field routes.

Properties

protected NodeStorage $nodeStorage

The node storage.

protected GraphService $o365Graph

The o365.graph service.

Methods

__construct(GraphService $o365_graph)

The controller constructor.

static 
create(ContainerInterface $container)

{@inheritdoc}

getData(Request $request, string $scope = '')

Get the data from sharepoint.

JsonResponse
handleAutocomplete(Request $request)

Handler for autocomplete request.

JsonResponse
handleCkEditorAutocomplete(Request $request)

Handler for the CKEditor autocomplete.

Details

at line 37
__construct(GraphService $o365_graph)

The controller constructor.

Parameters

GraphService $o365_graph

The o365.graph service.

at line 44
static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

at line 131
protected getData(Request $request, string $scope = '')

Get the data from sharepoint.

Parameters

Request $request

The request.

string $scope

The scope, with this we can filter out folders.

Exceptions

TempStoreException
GuzzleException
IdentityProviderException

at line 61
JsonResponse handleAutocomplete(Request $request)

Handler for autocomplete request.

Parameters

Request $request

The request.

Return Value

JsonResponse

The JSON response object.

Exceptions

TempStoreException
GuzzleException
IdentityProviderException

at line 99
JsonResponse handleCkEditorAutocomplete(Request $request)

Handler for the CKEditor autocomplete.

Parameters

Request $request

The request.

Return Value

JsonResponse

The JSON response object.

Exceptions

TempStoreException
GuzzleException
IdentityProviderException