O365SharepointFieldController
extends ControllerBase
in package
Returns responses for Office 365 - SharePoint Search Field routes.
Table of Contents
- $nodeStorage : NodeStorage
- The node storage.
- $o365Graph : GraphService
- The o365.graph service.
- __construct() : mixed
- The controller constructor.
- create() : mixed
- {@inheritdoc}
- handleAutocomplete() : JsonResponse
- Handler for autocomplete request.
- handleCkEditorAutocomplete() : JsonResponse
- Handler for the CKEditor autocomplete.
- getData() : mixed
- Get the data from sharepoint.
Properties
$nodeStorage
The node storage.
protected
NodeStorage
$nodeStorage
$o365Graph
The o365.graph service.
protected
GraphService
$o365Graph
Methods
__construct()
The controller constructor.
public
__construct(GraphService $o365_graph) : mixed
Parameters
- $o365_graph : GraphService
-
The o365.graph service.
Return values
mixed —create()
{@inheritdoc}
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —handleAutocomplete()
Handler for autocomplete request.
public
handleAutocomplete(Request $request) : JsonResponse
Parameters
- $request : Request
-
The request.
Tags
Return values
JsonResponse —The JSON response object.
handleCkEditorAutocomplete()
Handler for the CKEditor autocomplete.
public
handleCkEditorAutocomplete(Request $request) : JsonResponse
Parameters
- $request : Request
-
The request.
Tags
Return values
JsonResponse —The JSON response object.
getData()
Get the data from sharepoint.
protected
getData(Request $request[, string $scope = '' ]) : mixed
Parameters
- $request : Request
-
The request.
- $scope : string = ''
-
The scope, with this we can filter out folders.