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

Public Member Functions

 __construct ()
 
bool checkAccess ()
 
string getItem ()
 
bool hasDropDown ()
 
string getDropDown ()
 
array getAdditionalAttributes ()
 
int getIndex ()
 

Protected Member Functions

StandaloneView getFluidTemplateObject (string $templateFilename)
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 
TYPO3 CMS Core Localization LanguageService getLanguageService ()
 

Protected Attributes

ShortcutRepository $shortcutRepository
 

Detailed Description

Class to render the shortcut menu

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

Definition at line 29 of file ShortcutToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkAccess()

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

Checks whether the user has access to this toolbar item

Returns
‪bool TRUE if user has access, FALSE if not

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 60 of file ShortcutToolbarItem.php.

References TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\getBackendUser(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\getTSConfig().

◆ getAdditionalAttributes()

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

This toolbar item needs no additional attributes

Returns
‪array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 117 of file ShortcutToolbarItem.php.

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 158 of file ShortcutToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\checkAccess().

◆ getDropDown()

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

Render drop down content

Returns
‪string HTML

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 92 of file ShortcutToolbarItem.php.

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

◆ getFluidTemplateObject()

StandaloneView TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getFluidTemplateObject ( string  $templateFilename)
protected

returns a new standalone view, shorthand function

Parameters
string$templateFilename
Returns
‪StandaloneView
Exceptions

Definition at line 141 of file ShortcutToolbarItem.php.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\getDropDown(), and TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\getItem().

◆ getIndex()

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

Position relative to others, live search should be very right

Returns
‪int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 127 of file ShortcutToolbarItem.php.

◆ getItem()

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

◆ getLanguageService()

TYPO3 CMS Core Localization LanguageService TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::getLanguageService ( )
protected
Returns
‪\TYPO3\CMS\Core\Localization\LanguageService

Definition at line 166 of file ShortcutToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem\__construct().

◆ hasDropDown()

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

This item has a drop down

Returns
‪bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 82 of file ShortcutToolbarItem.php.

Member Data Documentation

◆ $shortcutRepository

ShortcutRepository TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::$shortcutRepository
protected

Definition at line 33 of file ShortcutToolbarItem.php.