ContextMenu

Class for generating the click menu

Internal

Table of Contents

Properties

$itemProviders  : array
Click menu item providers shipped with EXT:backend

Methods

getItems()  : array
cleanItems()  : array
Clean up double dividers.
getAvailableProviders()  : array

Properties

$itemProviders

Click menu item providers shipped with EXT:backend

protected array $itemProviders = [\TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::class, \TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider::class]

Methods

getItems()

public getItems(string $table, string $identifier[, string $context = '' ]) : array
Parameters
$table : string
$identifier : string
$context : string = ''
Return values
array

cleanItems()

Clean up double dividers.

protected cleanItems(array $items) : array

Don't render menu when there are no item or submenu.

Parameters
$items : array
Return values
array

getAvailableProviders()

protected getAvailableProviders(string $table, string $identifier, string $context) : array
Parameters
$table : string
$identifier : string
$context : string
Return values
array —

of \TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

On this page

Search results