UserToolbarItem

class \TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem

Implements
ToolbarItemInterface

User toolbar item

Table of Contents

Interfaces

ToolbarItemInterface
Interface for classes which extend the backend by adding items to the top toolbar

Methods

checkAccess()  : bool
Item is always enabled
getAdditionalAttributes()  : array
Returns an additional class if user is in "switch user" mode
getDropDown()  : string
Render drop down
getIndex()  : int
Position relative to others
getItem()  : string
Render username and an 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

Methods

checkAccess()

Item is always enabled

public checkAccess() : bool

Return values

bool —

TRUE

getAdditionalAttributes()

Returns an additional class if user is in "switch user" mode

public getAdditionalAttributes() : array

Return values

array

getDropDown()

Render drop down

public getDropDown() : string

Return values

string —

HTML

getIndex()

Position relative to others

public getIndex() : int

Return values

int

getItem()

Render username and an icon

public getItem() : string

Return values

string —

HTML

hasDropDown()

This item has a drop down

public hasDropDown() : bool

Return values

bool

getFluidTemplateObject()

Returns a new standalone view, shorthand function

protected getFluidTemplateObject(string $filename) : StandaloneView

Parameters

$filename : string

Which templateFile should be used.

Return values

StandaloneView
On this page