‪TYPO3CMS  11.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 32 of file AjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBackendUser()

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

Returns the current BE user.

Returns
‪BackendUserAuthentication

Definition at line 92 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 61 of file AjaxController.php.

◆ toggleActiveState()

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

Toggle admin panel active state via UC

Returns
‪JsonResponse

Definition at line 75 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 36 of file AjaxController.php.

◆ $configurationService

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

◆ $moduleLoader

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