‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\ContextMenu\ContextMenu Class Reference

Public Member Functions

 __construct (ItemProvidersRegistry $itemProvidersRegistry)
 
 getItems (string $table, string $identifier, string $context='')
 

Protected Member Functions

ProviderInterface[] getAvailableProviders (string $table, string $identifier, string $context)
 
 cleanItems (array $items)
 

Protected Attributes

ItemProvidersRegistry $itemProvidersRegistry
 

Detailed Description

Class for generating the click menu

Definition at line 29 of file ContextMenu.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\ContextMenu\ContextMenu::__construct ( ItemProvidersRegistry  $itemProvidersRegistry)

Member Function Documentation

◆ cleanItems()

TYPO3\CMS\Backend\ContextMenu\ContextMenu::cleanItems ( array  $items)
protected

Clean up double dividers. Don't render menu when there are no item or submenu.

Definition at line 69 of file ContextMenu.php.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenu\getItems().

◆ getAvailableProviders()

ProviderInterface [] TYPO3\CMS\Backend\ContextMenu\ContextMenu::getAvailableProviders ( string  $table,
string  $identifier,
string  $context 
)
protected
Returns
‪ProviderInterface[]

Definition at line 50 of file ContextMenu.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

Referenced by TYPO3\CMS\Backend\ContextMenu\ContextMenu\getItems().

◆ getItems()

TYPO3\CMS\Backend\ContextMenu\ContextMenu::getItems ( string  $table,
string  $identifier,
string  $context = '' 
)

Member Data Documentation

◆ $itemProvidersRegistry

ItemProvidersRegistry TYPO3\CMS\Backend\ContextMenu\ContextMenu::$itemProvidersRegistry
protected