UserToolbarItem implements ToolbarItemInterface
User toolbar item
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
intgetItem()
Render username and an icon
public
getItem() : string
Return values
string —HTML
hasDropDown()
This item has a drop down
public
hasDropDown() : bool
Return values
boolgetBackendUser()
Returns the current BE user.
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetFluidTemplateObject()
Returns a new standalone view, shorthand function
protected
getFluidTemplateObject(string $filename) : StandaloneView
Parameters
- $filename : string
-
Which templateFile should be used.