Skip to content

Commit 9ad252a

Browse files
committed
[COMMENT] Add comment to LanguageAugmentation
1 parent fecdfdc commit 9ad252a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Classes/Component/Core/Demand/Augmentation/LanguageAugmentation.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use In2code\In2publishCore\Component\Core\Demand\Type\SysRedirectDemand;
1010
use In2code\In2publishCore\Component\Core\RecordTree\RecordTreeBuildRequest;
1111
use In2code\In2publishCore\Event\DemandsWereCollected;
12-
use TYPO3\CMS\Core\Attribute\AsEventListener;
1312
use TYPO3\CMS\Core\SingletonInterface;
1413

1514
use function array_map;
@@ -18,6 +17,10 @@
1817
use function implode;
1918
use function trim;
2019

20+
/**
21+
* This event listener listens to the event DemandsWereCollected and checks if there are languages in the request.
22+
* If there are, it adds a language condition to the demands.
23+
*/
2124
class LanguageAugmentation implements SingletonInterface
2225
{
2326
public ?RecordTreeBuildRequest $request = null;

0 commit comments

Comments
 (0)