‪TYPO3CMS  9.5
TYPO3\CMS\Adminpanel\Controller\AjaxController Class Reference

Public Member Functions

 __construct (ConfigurationService $configurationService=null, ModuleLoader $moduleLoader=null)
 
JsonResponse saveDataAction (ServerRequestInterface $request)
 
JsonResponse toggleActiveState ()
 

Protected Member Functions

BackendUserAuthentication getBackendUser ()
 

Protected Attributes

array $adminPanelModuleConfiguration
 
ModuleLoader $moduleLoader
 

Private Attributes

ConfigurationService $configurationService
 

Detailed Description

Admin Panel Ajax Controller - Route endpoint for ajax actions

Definition at line 31 of file AjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Adminpanel\Controller\AjaxController::__construct ( ConfigurationService  $configurationService = null,
ModuleLoader  $moduleLoader = null 
)
Parameters
ConfigurationService$configurationService
ModuleLoader$moduleLoader

Definition at line 49 of file AjaxController.php.

References TYPO3\CMS\Adminpanel\Controller\AjaxController\$configurationService, $GLOBALS, and TYPO3\CMS\Adminpanel\Controller\AjaxController\$moduleLoader.

Member Function Documentation

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Adminpanel\Controller\AjaxController::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪BackendUserAuthentication

Definition at line 95 of file AjaxController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Adminpanel\Controller\AjaxController\toggleActiveState().

◆ saveDataAction()

JsonResponse TYPO3\CMS\Adminpanel\Controller\AjaxController::saveDataAction ( ServerRequestInterface  $request)

Save adminPanel data

Parameters
ServerRequestInterface$request
Returns
‪JsonResponse

Definition at line 64 of file AjaxController.php.

◆ toggleActiveState()

JsonResponse TYPO3\CMS\Adminpanel\Controller\AjaxController::toggleActiveState ( )

Toggle admin panel active state via UC

Returns
‪JsonResponse

Definition at line 78 of file AjaxController.php.

References TYPO3\CMS\Adminpanel\Controller\AjaxController\getBackendUser().

Member Data Documentation

◆ $adminPanelModuleConfiguration

array TYPO3\CMS\Adminpanel\Controller\AjaxController::$adminPanelModuleConfiguration
protected

Definition at line 35 of file AjaxController.php.

◆ $configurationService

ConfigurationService TYPO3\CMS\Adminpanel\Controller\AjaxController::$configurationService
private

◆ $moduleLoader

ModuleLoader TYPO3\CMS\Adminpanel\Controller\AjaxController::$moduleLoader
protected