UserToolbarItem implements ToolbarItemInterface

User toolbar item

Internal

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

Methods

checkAccess()  : bool
Item is always enabled
getAdditionalAttributes()  : array<string|int, mixed>
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<string|int, mixed>
Return values
array<string|int, mixed>

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

Search results