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

Public Member Functions

 __construct (protected array $linkHandlers, protected array $currentLinkParts,)
 
$this setLinkHandler (string $name, array $handler)
 

Public Attributes

array< string, function getLinkHandlers():array { return $this-> linkHandlers
 
array< string, function getLinkHandler(string $name):?array { return $this-> linkHandlers[ $name] null
 
array< string, function getCurrentLinkParts():array { return $this-> currentLinkParts
 

Detailed Description

This event allows extensions to modify the list of link handlers and their configuration before they are invoked.

Definition at line 23 of file ModifyLinkHandlersEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent::__construct ( protected array  $linkHandlers,
protected array  $currentLinkParts 
)
Parameters
array<string,array>‪$linkHandlers
array<string,mixed>‪$currentLinkParts

Definition at line 29 of file ModifyLinkHandlersEvent.php.

Member Function Documentation

◆ setLinkHandler()

$this TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent::setLinkHandler ( string  $name,
array  $handler 
)

Sets a handler by name, overwriting it if it already exists.

Parameters
string$name‪The handler name, including trailing period.
array<string,mixed>‪$handler
Returns
‪$this

Definition at line 60 of file ModifyLinkHandlersEvent.php.

References $name, and TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent\linkHandlers.

Member Data Documentation

◆ currentLinkParts

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

Definition at line 71 of file ModifyLinkHandlersEvent.php.

◆ linkHandlers

array<string, function getLinkHandlers(): array { return $this-> TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent::linkHandlers
Returns
‪array<string, array>

Definition at line 39 of file ModifyLinkHandlersEvent.php.

Referenced by TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent\setLinkHandler().

◆ null

array<string, function getLinkHandler(string $name): ?array { return $this-> linkHandlers [$name] TYPO3\CMS\Backend\Controller\Event\ModifyLinkHandlersEvent::null

Gets an individual handler by name.

Parameters
string$name‪The handler name, including trailing period.
Returns
‪array<string, mixed>|null The handler definition, or null if not defined.

Definition at line 50 of file ModifyLinkHandlersEvent.php.