ShortcutController
Controller for shortcut processing.
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[AsController]
 
Table of Contents
Properties
- $backendViewFactory : BackendViewFactory
 - $shortcutRepository : ShortcutRepository
 - $shortcutToolbarItem : ShortcutToolbarItem
 
Methods
- __construct() : mixed
 - addAction() : ResponseInterface
 - Creates a shortcut through an AJAX call.
 - menuAction() : ResponseInterface
 - Renders the menu so that it can be returned as response to an AJAX call.
 - removeAction() : ResponseInterface
 - Deletes a shortcut through an AJAX call.
 - showEditFormAction() : ResponseInterface
 - Fetches the available shortcut groups, renders a form so it can be saved later on, called via AJAX.
 - updateAction() : ResponseInterface
 - Gets called when a shortcut is changed, checks whether the user has permissions to do so and saves the changes if everything is ok.
 
Properties
$backendViewFactory read-only
        protected
            BackendViewFactory
    $backendViewFactory
    
    
    
    
    
    
$shortcutRepository read-only
        protected
            ShortcutRepository
    $shortcutRepository
    
    
    
    
    
    
$shortcutToolbarItem read-only
        protected
            ShortcutToolbarItem
    $shortcutToolbarItem
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(ShortcutToolbarItem $shortcutToolbarItem, ShortcutRepository $shortcutRepository, BackendViewFactory $backendViewFactory) : mixed
    Parameters
- $shortcutToolbarItem : ShortcutToolbarItem
 - $shortcutRepository : ShortcutRepository
 - $backendViewFactory : BackendViewFactory
 
addAction()
Creates a shortcut through an AJAX call.
    public
                    addAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfacemenuAction()
Renders the menu so that it can be returned as response to an AJAX call.
    public
                    menuAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfaceremoveAction()
Deletes a shortcut through an AJAX call.
    public
                    removeAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfaceshowEditFormAction()
Fetches the available shortcut groups, renders a form so it can be saved later on, called via AJAX.
    public
                    showEditFormAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
 
Return values
ResponseInterfaceupdateAction()
Gets called when a shortcut is changed, checks whether the user has permissions to do so and saves the changes if everything is ok.
    public
                    updateAction(ServerRequestInterface $request) : ResponseInterface
    Parameters
- $request : ServerRequestInterface