ShortcutController

class \TYPO3\CMS\Backend\Controller\ShortcutController

Controller for shortcut processing

Table of Contents

Properties

$moduleLoader  : ModuleLoader
$shortcutRepository  : ShortcutRepository
$shortcutToolbarItem  : ShortcutToolbarItem

Methods

__construct()  : mixed
Set up dependencies
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
getBackendUser()  : BackendUserAuthentication
getFluidTemplateObject()  : StandaloneView
returns a new standalone view, shorthand function
getLanguageService()  : LanguageService

Properties

Methods

__construct()

Set up dependencies

public __construct() : mixed

addAction()

Creates a shortcut through an AJAX call

public addAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

menuAction()

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

public menuAction() : ResponseInterface

Return values

ResponseInterface

removeAction()

Deletes a shortcut through an AJAX call

public removeAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

showEditFormAction()

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

ResponseInterface —

the full HTML for the form

updateAction()

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

Return values

ResponseInterface

getFluidTemplateObject()

returns a new standalone view, shorthand function

protected getFluidTemplateObject(string $templateFilename) : StandaloneView

Parameters

$templateFilename : string

Tags

throws
InvalidExtensionNameException
throws
InvalidArgumentException

Return values

StandaloneView
On this page