‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface TYPO3\CMS\Backend\Toolbar\RequestAwareToolbarItemInterface

Public Member Functions

 __construct (private readonly WorkspaceService $workspaceService, private readonly UriBuilder $uriBuilder, private readonly BackendViewFactory $backendViewFactory, private readonly ModuleProvider $moduleProvider,)
 
 setRequest (ServerRequestInterface $request)
 
 checkAccess ()
 
 getItem ()
 
 getDropDown ()
 
 getAdditionalAttributes ()
 
 hasDropDown ()
 
 getIndex ()
 

Protected Member Functions

 getBackendUser ()
 

Protected Attributes

array $availableWorkspaces
 

Private Attributes

ServerRequestInterface $request
 

Detailed Description

Class to render the workspace selector

Definition at line 32 of file WorkspaceSelectorToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::__construct ( private readonly WorkspaceService  $workspaceService,
private readonly UriBuilder  $uriBuilder,
private readonly BackendViewFactory  $backendViewFactory,
private readonly ModuleProvider  $moduleProvider 
)

Definition at line 37 of file WorkspaceSelectorToolbarItem.php.

Member Function Documentation

◆ checkAccess()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::checkAccess ( )

Checks whether the user has access to this toolbar item.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 54 of file WorkspaceSelectorToolbarItem.php.

◆ getAdditionalAttributes()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getAdditionalAttributes ( )

This toolbar needs no additional attributes.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 109 of file WorkspaceSelectorToolbarItem.php.

◆ getBackendUser()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getBackendUser ( )
protected

◆ getDropDown()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getDropDown ( )

◆ getIndex()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getIndex ( )

Position relative to others

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 125 of file WorkspaceSelectorToolbarItem.php.

◆ getItem()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getItem ( )

◆ hasDropDown()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::hasDropDown ( )

This item has a drop-down.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 117 of file WorkspaceSelectorToolbarItem.php.

◆ setRequest()

TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::setRequest ( ServerRequestInterface  $request)

Member Data Documentation

◆ $availableWorkspaces

array TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::$availableWorkspaces
protected

Definition at line 35 of file WorkspaceSelectorToolbarItem.php.

◆ $request

ServerRequestInterface TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::$request
private