ProviderInterface
Interface for context menu items providers
Table of Contents
Methods
- addItems() : array<string|int, mixed>
- canHandle() : bool
- Checks if the provider can add items to the menu
- getPriority() : int
- Returns the priority of the provider. Higher priority value means provider is executed first
- setContext() : void
- Initialize the current context.
Methods
addItems()
    public
                    addItems(array<string|int, mixed> $items) : array<string|int, mixed>
    Parameters
- $items : array<string|int, mixed>
Return values
array<string|int, mixed>canHandle()
Checks if the provider can add items to the menu
    public
                    canHandle() : bool
    Return values
boolgetPriority()
Returns the priority of the provider. Higher priority value means provider is executed first
    public
                    getPriority() : int
    Return values
intsetContext()
Initialize the current context.
    public
                    setContext(string $table, string $identifier[, string $context = '' ]) : void
    This method is called directly after fetching the provider from the container.
Parameters
- $table : string
- $identifier : string
- $context : string = ''