initializeResultArray(); if ($this->data['command'] !== 'edit' || $this->data['tableName'] !== 'tx_scheduler_task' || (int)($this->data['parameterArray']['itemFormElValue'] ?? 0) > 0 ) { return $resultArray; } $refField = (string)($this->data['renderData']['fieldInformationOptions']['refField'] ?? ''); if (($this->data['databaseRow'][$refField] ?? false) === false) { return $resultArray; } $selectedTable = (string)(is_array($this->data['databaseRow'][$refField]) ? $this->data['databaseRow'][$refField][0] : $this->data['databaseRow'][$refField]); $tableConfiguration = GeneralUtility::makeInstance(TableGarbageCollectionTask::class)->getTableConfiguration()[$selectedTable] ?? []; if (!isset($tableConfiguration['expirePeriod'])) { return $resultArray; } $resultArray['html'] = '
' . sprintf($this->getLanguageService()->sL('LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:msg.defaultExpirePeriod'), (int)$tableConfiguration['expirePeriod'], $selectedTable) . '
'; return $resultArray; } protected function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } }