‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\ShortcutController Class Reference

Public Member Functions

 __construct (protected readonly ShortcutToolbarItem $shortcutToolbarItem, protected readonly ShortcutRepository $shortcutRepository, protected readonly BackendViewFactory $backendViewFactory,)
 
 menuAction (ServerRequestInterface $request)
 
 addAction (ServerRequestInterface $request)
 
 showEditFormAction (ServerRequestInterface $request)
 
 updateAction (ServerRequestInterface $request)
 
 removeAction (ServerRequestInterface $request)
 

Detailed Description

Controller for shortcut processing.

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

Definition at line 35 of file ShortcutController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ShortcutController::__construct ( protected readonly ShortcutToolbarItem  $shortcutToolbarItem,
protected readonly ShortcutRepository  $shortcutRepository,
protected readonly BackendViewFactory  $backendViewFactory 
)

Definition at line 37 of file ShortcutController.php.

Member Function Documentation

◆ addAction()

TYPO3\CMS\Backend\Controller\ShortcutController::addAction ( ServerRequestInterface  $request)

Creates a shortcut through an AJAX call.

Definition at line 55 of file ShortcutController.php.

◆ menuAction()

TYPO3\CMS\Backend\Controller\ShortcutController::menuAction ( ServerRequestInterface  $request)

Renders the menu so that it can be returned as response to an AJAX call.

Definition at line 46 of file ShortcutController.php.

◆ removeAction()

TYPO3\CMS\Backend\Controller\ShortcutController::removeAction ( ServerRequestInterface  $request)

Deletes a shortcut through an AJAX call.

Definition at line 116 of file ShortcutController.php.

◆ showEditFormAction()

TYPO3\CMS\Backend\Controller\ShortcutController::showEditFormAction ( ServerRequestInterface  $request)

Fetches the available shortcut groups, renders a form so it can be saved later on, called via AJAX.

Definition at line 82 of file ShortcutController.php.

◆ updateAction()

TYPO3\CMS\Backend\Controller\ShortcutController::updateAction ( ServerRequestInterface  $request)

Gets called when a shortcut is changed, checks whether the user has permissions to do so and saves the changes if everything is ok.

Definition at line 103 of file ShortcutController.php.