ContextMenu
Class for generating the click menu
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
Methods
- __construct() : mixed
- getItems() : array<string|int, mixed>
- cleanItems() : array<string|int, mixed>
- Clean up double dividers.
- getAvailableProviders() : array<string|int, 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<string|int, mixed>
Parameters
- $table : string
- $identifier : string
- $context : string = ''
Return values
array<string|int, mixed>cleanItems()
Clean up double dividers.
protected
cleanItems(array<string|int, mixed> $items) : array<string|int, mixed>
Don't render menu when there are no item or submenu.
Parameters
- $items : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableProviders()
protected
getAvailableProviders(string $table, string $identifier, string $context) : array<string|int, ProviderInterface>
Parameters
- $table : string
- $identifier : string
- $context : string