‪TYPO3CMS  11.5
RecordListProvider.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
23 
29 {
30  protected ‪$noteController;
31 
33  {
34  $this->noteController = ‪$noteController;
35  }
36 
38  {
39  $id = (int)($event->‪getRequest()->getParsedBody()['id'] ?? $event->‪getRequest()->getQueryParams()['id'] ?? 0);
40  $event->‪addContentAbove($this->noteController->listAction($id, ‪SysNoteRepository::SYS_NOTE_POSITION_TOP));
41  $event->‪addContentBelow($this->noteController->listAction($id, ‪SysNoteRepository::SYS_NOTE_POSITION_BOTTOM));
42  }
43 }
‪TYPO3\CMS\SysNote\Provider\RecordListProvider\$noteController
‪$noteController
Definition: RecordListProvider.php:30
‪TYPO3\CMS\SysNote\Controller\NoteController
Definition: NoteController.php:33
‪TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository\SYS_NOTE_POSITION_BOTTOM
‪const SYS_NOTE_POSITION_BOTTOM
Definition: SysNoteRepository.php:31
‪TYPO3\CMS\Recordlist\Event\RenderAdditionalContentToRecordListEvent
Definition: RenderAdditionalContentToRecordListEvent.php:28
‪TYPO3\CMS\Recordlist\Event\RenderAdditionalContentToRecordListEvent\addContentBelow
‪addContentBelow(string $contentBelow)
Definition: RenderAdditionalContentToRecordListEvent.php:50
‪TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository
Definition: SysNoteRepository.php:30
‪TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository\SYS_NOTE_POSITION_TOP
‪const SYS_NOTE_POSITION_TOP
Definition: SysNoteRepository.php:32
‪TYPO3\CMS\SysNote\Provider\RecordListProvider
Definition: RecordListProvider.php:29
‪TYPO3\CMS\Recordlist\Event\RenderAdditionalContentToRecordListEvent\getRequest
‪getRequest()
Definition: RenderAdditionalContentToRecordListEvent.php:40
‪TYPO3\CMS\SysNote\Provider\RecordListProvider\__construct
‪__construct(NoteController $noteController)
Definition: RecordListProvider.php:32
‪TYPO3\CMS\SysNote\Provider\RecordListProvider\__invoke
‪__invoke(RenderAdditionalContentToRecordListEvent $event)
Definition: RecordListProvider.php:37
‪TYPO3\CMS\SysNote\Provider
Definition: RecordListProvider.php:18
‪TYPO3\CMS\Recordlist\Event\RenderAdditionalContentToRecordListEvent\addContentAbove
‪addContentAbove(string $contentAbove)
Definition: RenderAdditionalContentToRecordListEvent.php:45