Skip to content

Commit

Permalink
[DOCS] Use correct methods in ModifyLinkHandlersEvent example
Browse files Browse the repository at this point in the history
Resolves: #100015
Related: #97454
Releases: main
Change-Id: I479b8d22fb08575bebde220a6b67ce1c2d4654cb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77933
Tested-by: Sybille Peters <sypets@gmx.de>
Reviewed-by: Sybille Peters <sypets@gmx.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
brotkrueml authored and o-ba committed Feb 27, 2023
1 parent f8f1b9f commit 6775ccc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -54,9 +54,9 @@ The corresponding event listener class:
{
public function __invoke(ModifyLinkHandlersEvent $event): void
{
$handler = $event->getHandler('url.');
$handler = $event->getLinkHandler('url.');
$handler['label'] = 'My custom label';
$event->setHandler('url.', $handler);
$event->setLinkHandler('url.', $handler);
}
}
Expand Down

0 comments on commit 6775ccc

Please sign in to comment.