ProviderInterface

interface \TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

Interface for context menu items providers

Table of Contents

Methods

addItems()  : array
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 $items) : array

Parameters

$items : array

Return values

array

canHandle()

Checks if the provider can add items to the menu

public canHandle() : bool

Return values

bool

getPriority()

Returns the priority of the provider. Higher priority value means provider is executed first

public getPriority() : int

Return values

int

setContext()

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 = ''
On this page