ShortcutToolbarItem implements ToolbarItemInterface, RequestAwareToolbarItemInterface
Class to render the shortcut menu toolbar.
This class is a specific Backend implementation and is not considered part of the Public TYPO3 API.
Attributes
- #[Autoconfigure]
 - $public: true
 
Table of Contents
Interfaces
- ToolbarItemInterface
 - Interface for classes which extend the backend by adding items to the top toolbar
 - RequestAwareToolbarItemInterface
 - Interface for toolbar items that need the ServerRequestInterface Request.
 
Methods
- __construct() : mixed
 - 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.
 - getItem() : string
 - Render shortcut icon.
 - hasDropDown() : bool
 - This item has a drop-down.
 - setRequest() : void
 - getBackendUser() : BackendUserAuthentication
 
Methods
__construct()
    public
                    __construct(ShortcutRepository $shortcutRepository, BackendViewFactory $backendViewFactory) : mixed
    Parameters
- $shortcutRepository : ShortcutRepository
 - $backendViewFactory : BackendViewFactory
 
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> —List item HTML attributes
getDropDown()
Render drop-down content
    public
                    getDropDown() : string
    Return values
string —Drop down HTML
getIndex()
Position relative to others.
    public
                    getIndex() : int
    Return values
int —0 .. 100
getItem()
Render shortcut icon.
    public
                    getItem() : string
    Return values
string —Toolbar item HTML
hasDropDown()
This item has a drop-down.
    public
                    hasDropDown() : bool
    Return values
boolsetRequest()
    public
                    setRequest(ServerRequestInterface $request) : void
    Parameters
- $request : ServerRequestInterface
 
getBackendUser()
    protected
                    getBackendUser() : BackendUserAuthentication