final class O365CKEditorController extends ControllerBase

JSON autocomplete endpoints for o365 CKEditor5 plugins.

Methods

__construct(SharepointSearchServiceInterface $searchService)

No description

create(ContainerInterface $container)

{@inheritdoc}

JsonResponse
handleSharepointAutocomplete(Request $request)

Autocomplete endpoint for the SharePoint Link CKEditor plugin.

Details

at line 19
__construct(SharepointSearchServiceInterface $searchService)

No description

Parameters

SharepointSearchServiceInterface $searchService

at line 26
static O365CKEditorController create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

Return Value

O365CKEditorController

at line 43
JsonResponse handleSharepointAutocomplete(Request $request)

Autocomplete endpoint for the SharePoint Link CKEditor plugin.

Returns only linkable documents (no folders).

Parameters

Request $request

The current request.

Return Value

JsonResponse

Array of {value: webUrl, label: filename} items.