O365ProfileAjaxController
extends ControllerBase
in package
Returns responses for Office 365 - Profiles and Personas routes.
Table of Contents
- $authmap : Authmap
- The externalauth authmap service.
- $getDataService : O365ProfileGetDataService
- The service we use to get user data.
- __construct() : mixed
- The controller constructor.
- create() : mixed
- {@inheritdoc}
- getUserStatus() : JsonResponse
- Generate the AJAX JSON response.
Properties
$authmap
The externalauth authmap service.
protected
Authmap
$authmap
$getDataService
The service we use to get user data.
protected
O365ProfileGetDataService
$getDataService
Methods
__construct()
The controller constructor.
public
__construct(Authmap $authmap, O365ProfileGetDataService $getDataService) : mixed
Parameters
- $authmap : Authmap
- $getDataService : O365ProfileGetDataService
Return values
mixed —create()
{@inheritdoc}
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —getUserStatus()
Generate the AJAX JSON response.
public
getUserStatus(int $uid) : JsonResponse
Parameters
- $uid : int
-
The users UID.
Tags
Return values
JsonResponse —The JSON we use in JS.