ContextMenu
Class for generating the click menu
Table of Contents
Properties
Methods
- __construct() : mixed
- getItems() : array
- cleanItems() : array
- Clean up double dividers.
- getAvailableProviders() : ProviderInterface[]
Properties
$itemProvidersRegistry
protected
ItemProvidersRegistry
$itemProvidersRegistry
Methods
__construct()
public
__construct(ItemProvidersRegistry $itemProvidersRegistry) : mixed
Parameters
- $itemProvidersRegistry : ItemProvidersRegistry
getItems()
public
getItems(string $table, string $identifier[, string $context = '' ]) : array
Parameters
- $table : string
- $identifier : string
- $context : string = ''
Return values
arraycleanItems()
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
arraygetAvailableProviders()
protected
getAvailableProviders(string $table, string $identifier, string $context) : ProviderInterface[]
Parameters
- $table : string
- $identifier : string
- $context : string