‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent Class Reference

Public Member Functions

 __construct (protected array $allowedItems, protected array $currentLinkParts,)
 
string[] getAllowedItems ()
 
 addAllowedItem (string $item)
 
 removeAllowedItem (string $new)
 

Public Attributes

array< string, function getCurrentLinkParts():array { return $this-> currentLinkParts
 

Detailed Description

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

Definition at line 23 of file ModifyAllowedItemsEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent::__construct ( protected array  $allowedItems,
protected array  $currentLinkParts 
)
Parameters
string[]$allowedItems
array<string,mixed>‪$currentLinkParts

Definition at line 29 of file ModifyAllowedItemsEvent.php.

Member Function Documentation

◆ addAllowedItem()

TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent::addAllowedItem ( string  $item)

Definition at line 42 of file ModifyAllowedItemsEvent.php.

◆ getAllowedItems()

string [] TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent::getAllowedItems ( )
Returns
‪string[]

Definition at line 37 of file ModifyAllowedItemsEvent.php.

◆ removeAllowedItem()

TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent::removeAllowedItem ( string  $new)

Definition at line 48 of file ModifyAllowedItemsEvent.php.

Member Data Documentation

◆ currentLinkParts

array<string, function getCurrentLinkParts(): array { return $this-> TYPO3\CMS\Backend\Controller\Event\ModifyAllowedItemsEvent::currentLinkParts
Returns
‪array<string, mixed>

Definition at line 59 of file ModifyAllowedItemsEvent.php.