|
|
@@ -1,24 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-namespace Opentalent\OtTemplating\News;
|
|
|
-
|
|
|
-use GeorgRinger\News\Utility\Page;
|
|
|
-use Opentalent\OtCore\Website\OtPageRepository;
|
|
|
-use Opentalent\OtCore\Website\OtWebsiteRepository;
|
|
|
-use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
|
-use TYPO3\CMS\Extbase\Object\ObjectManager;
|
|
|
-
|
|
|
-class NewsFilter
|
|
|
-{
|
|
|
- public function __construct(
|
|
|
- private readonly OtPageRepository $otPageRepository,
|
|
|
- ) {}
|
|
|
-
|
|
|
- public function createDemandObjectFromSettings($params) {
|
|
|
- $rootUid = $this->otPageRepository->getRootPageFor($GLOBALS['TSFE']->id);
|
|
|
- $params['demand']->setStoragePage(Page::extendPidListByChildren(
|
|
|
- '' . $rootUid['uid'],
|
|
|
- 5
|
|
|
- ));
|
|
|
- }
|
|
|
-}
|