Skip to content
Snippets Groups Projects
Commit b7ff2a2f authored by Chris Müller's avatar Chris Müller Committed by Christian Kuhn
Browse files

[DOCS] Correct example for AfterLinkIsGeneratedEvent in changelog

The method "withAttribute()" expects a string or null as second argument.

Resolves: #100801
Related: #96641
Releases: main, 12.4
Change-Id: I2b8ef43c51159bd92730edbc47b07c2350d5f399
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78931


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent cc40fc06
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ The corresponding event listener class:
{
public function __invoke(AfterLinkIsGeneratedEvent $event): void
{
$linkResult = $event->getLinkResult()->withAttribute('data-enable-lightbox', true);
$linkResult = $event->getLinkResult()->withAttribute('data-enable-lightbox', 'true');
$event->setLinkResult($linkResult);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment