ShortcutToolbarItem implements ToolbarItemInterface
Class to render the shortcut menu
This class is a specific Backend implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Interfaces
- ToolbarItemInterface
- Interface for classes which extend the backend by adding items to the top toolbar
Properties
Methods
- __construct() : mixed
- Constructor
- checkAccess() : bool
- Checks whether the user has access to this toolbar item
- getAdditionalAttributes() : array<string|int, mixed>
- This toolbar item needs no additional attributes
- getDropDown() : string
- Render drop down content
- getIndex() : int
- Position relative to others, live search should be very right
- getItem() : string
- Render shortcut icon
- hasDropDown() : bool
- This item has a drop down
- getBackendUser() : BackendUserAuthentication
- Returns the current BE user.
- getFluidTemplateObject() : StandaloneView
- returns a new standalone view, shorthand function
- getLanguageService() : LanguageService
Properties
$shortcutRepository
protected
ShortcutRepository
$shortcutRepository
Methods
__construct()
Constructor
public
__construct() : mixed
checkAccess()
Checks whether the user has access to this toolbar item
public
checkAccess() : bool
Return values
bool —TRUE if user has access, FALSE if not
getAdditionalAttributes()
This toolbar item needs no additional attributes
public
getAdditionalAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getDropDown()
Render drop down content
public
getDropDown() : string
Return values
string —HTML
getIndex()
Position relative to others, live search should be very right
public
getIndex() : int
Return values
intgetItem()
Render shortcut icon
public
getItem() : string
Tags
Return values
string —HTML
hasDropDown()
This item has a drop down
public
hasDropDown() : bool
Return values
boolgetBackendUser()
Returns the current BE user.
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetFluidTemplateObject()
returns a new standalone view, shorthand function
protected
getFluidTemplateObject(string $templateFilename) : StandaloneView
Parameters
- $templateFilename : string
param string $templateFile
Tags
Return values
StandaloneViewgetLanguageService()
protected
getLanguageService() : LanguageService