Skip to content

Commit ed34563

Browse files
brotkruemllolli42
authored andcommitted
[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/+/78895 Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
1 parent b1569ec commit ed34563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typo3/sysext/core/Documentation/Changelog/12.0/Feature-96641-NewPSR-14EventForModifyingLinks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The corresponding event listener class:
6262
{
6363
public function __invoke(AfterLinkIsGeneratedEvent $event): void
6464
{
65-
$linkResult = $event->getLinkResult()->withAttribute('data-enable-lightbox', true);
65+
$linkResult = $event->getLinkResult()->withAttribute('data-enable-lightbox', 'true');
6666
$event->setLinkResult($linkResult);
6767
}
6868
}

0 commit comments

Comments
 (0)