‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface TYPO3\CMS\Backend\Toolbar\RequestAwareToolbarItemInterface

Public Member Functions

 __construct (private readonly ShortcutRepository $shortcutRepository, private readonly BackendViewFactory $backendViewFactory,)
 
 setRequest (ServerRequestInterface $request)
 
 checkAccess ()
 
 getItem ()
 
 hasDropDown ()
 
 getDropDown ()
 
 getAdditionalAttributes ()
 
 getIndex ()
 

Protected Member Functions

 getBackendUser ()
 

Private Attributes

ServerRequestInterface $request
 

Detailed Description

Class to render the shortcut menu toolbar.

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

Definition at line 34 of file ShortcutToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::__construct ( private readonly ShortcutRepository  $shortcutRepository,
private readonly BackendViewFactory  $backendViewFactory 
)

Definition at line 38 of file ShortcutToolbarItem.php.

Member Function Documentation

◆ checkAccess()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::checkAccess ( )

Checks whether the user has access to this toolbar item.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 51 of file ShortcutToolbarItem.php.

References TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\getBackendUser().

◆ getAdditionalAttributes()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getAdditionalAttributes ( )

This toolbar item needs no additional attributes.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 96 of file ShortcutToolbarItem.php.

◆ getBackendUser()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getBackendUser ( )
protected

◆ getDropDown()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getDropDown ( )

Render drop-down content

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 76 of file ShortcutToolbarItem.php.

◆ getIndex()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getIndex ( )

Position relative to others.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 104 of file ShortcutToolbarItem.php.

◆ getItem()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getItem ( )

Render shortcut icon.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 59 of file ShortcutToolbarItem.php.

◆ hasDropDown()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::hasDropDown ( )

This item has a drop-down.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 68 of file ShortcutToolbarItem.php.

◆ setRequest()

TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::setRequest ( ServerRequestInterface  $request)

Member Data Documentation

◆ $request

ServerRequestInterface TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::$request
private