Skip to content

Commit

Permalink
Merge branch 'release/38.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Feb 18, 2025
2 parents 9d6de92 + f73cb3d commit 6fcdeef
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 297 deletions.
23 changes: 23 additions & 0 deletions Classes/Hooks/LuxletterLinkLuxIdentificationHandler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);
namespace In2code\Lux\Hooks;

use In2code\Lux\Utility\CookieUtility;
use In2code\Luxletter\Events\LuxletterLinkLuxIdentificationEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;

#[AsEventListener(
identifier: 'lux/handle-luxletter-link-lux-identification',
event: LuxletterLinkLuxIdentificationEvent::class
)]
class LuxletterLinkLuxIdentificationHandler
{
public function __invoke(LuxletterLinkLuxIdentificationEvent $event)
{
if ($event->isIdentification()) {
$link = $event->getLink();
CookieUtility::setCookie('luxletterlinkhash', $link['hash']);
}
}
}
Loading

0 comments on commit 6fcdeef

Please sign in to comment.