‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Controller\AjaxController Class Reference

Public Member Functions

 __construct (private readonly WorkspaceService $workspaceService, private readonly ModuleProvider $moduleProvider,)
 
 switchWorkspaceAction (ServerRequestInterface $request)
 

Protected Member Functions

 getBackendUser ()
 

Detailed Description

Implements the AJAX functionality for the various asynchronous calls.

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 36 of file AjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Controller\AjaxController::__construct ( private readonly WorkspaceService  $workspaceService,
private readonly ModuleProvider  $moduleProvider 
)

Definition at line 38 of file AjaxController.php.

Member Function Documentation

◆ getBackendUser()

TYPO3\CMS\Workspaces\Controller\AjaxController::getBackendUser ( )
protected

◆ switchWorkspaceAction()

TYPO3\CMS\Workspaces\Controller\AjaxController::switchWorkspaceAction ( ServerRequestInterface  $request)

Sets the TYPO3 Backend context to a certain workspace, called by the Backend toolbar menu

Definition at line 47 of file AjaxController.php.

References TYPO3\CMS\Workspaces\Controller\AjaxController\getBackendUser(), and TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW.