ModifyAllowedItemsEvent

FinalYes

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

Table of Contents

Properties

$allowedItems  : array<string|int, mixed>
$currentLinkParts  : array<string|int, mixed>

Methods

__construct()  : mixed
addAllowedItem()  : self
getAllowedItems()  : array<string|int, string>
getCurrentLinkParts()  : array<string, mixed>
removeAllowedItem()  : self

Properties

$allowedItems

protected array<string|int, mixed> $allowedItems

$currentLinkParts

protected array<string|int, mixed> $currentLinkParts

Methods

__construct()

public __construct(array<string|int, string> $allowedItems, array<string, mixed> $currentLinkParts) : mixed
Parameters
$allowedItems : array<string|int, string>
$currentLinkParts : array<string, mixed>

addAllowedItem()

public addAllowedItem(string $item) : self
Parameters
$item : string
Return values
self

getAllowedItems()

public getAllowedItems() : array<string|int, string>
Return values
array<string|int, 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

Search results