ModifyAllowedItemsEvent

final class \TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent

This event allows extensions to add or remove from the list of allowed link types.

Table of Contents

Methods

__construct()  : mixed
addAllowedItem()  : self
getAllowedItems()  : string[]
getCurrentLinkParts()  : array<string, mixed>
removeAllowedItem()  : self

Methods

__construct()

public __construct(string[] $allowedItems, array<string, mixed> $currentLinkParts) : mixed

Parameters

$allowedItems : string[]
$currentLinkParts : array<string, mixed>

addAllowedItem()

public addAllowedItem(string $item) : self

Parameters

$item : string

Return values

self

getAllowedItems()

public getAllowedItems() : string[]

Return values

string[]

getCurrentLinkParts()

public getCurrentLinkParts() : array<string, mixed>

Return values

array<string, mixed>

removeAllowedItem()

public removeAllowedItem(string $new) : self

Parameters

$new : string

Return values

self
On this page