ContextMenu

Class for generating the click menu

Internal

Table of Contents

Properties

$itemProvidersRegistry  : ItemProvidersRegistry

Methods

__construct()  : mixed
getItems()  : array<string|int, mixed>
cleanItems()  : array<string|int, mixed>
Clean up double dividers.
getAvailableProviders()  : array<string|int, ProviderInterface>

Properties

Methods

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
Return values
array<string|int, ProviderInterface>

        
On this page

Search results