WorkspaceSelectorToolbarItem

class \TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem

Implements
ToolbarItemInterface

Class to render the workspace selector

Table of Contents

Interfaces

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

Properties

$availableWorkspaces  : array

Methods

__construct()  : mixed
Constructor
checkAccess()  : bool
Checks whether the user has access to this toolbar item
getAdditionalAttributes()  : array
This toolbar needs no additional attributes
getDropDown()  : string
Get drop down
getIndex()  : int
Position relative to others
getItem()  : string
Render item
hasDropDown()  : bool
This item has a drop down
getBackendUser()  : BackendUserAuthentication
Returns the current BE user.
getFluidTemplateObject()  : StandaloneView
Returns a new standalone view, shorthand function
getPageRenderer()  : PageRenderer
Returns current PageRenderer

Properties

$availableWorkspaces

protected array $availableWorkspaces

Methods

__construct()

Constructor

public __construct() : mixed

checkAccess()

Checks whether the user has access to this toolbar item

public checkAccess() : bool

Return values

bool —

TRUE if user has access, FALSE if not

getAdditionalAttributes()

This toolbar needs no additional attributes

public getAdditionalAttributes() : array

Return values

array

getDropDown()

Get drop down

public getDropDown() : string

Return values

string

getIndex()

Position relative to others

public getIndex() : int

Return values

int

getItem()

Render item

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