siteFinder = $siteFinder ?? GeneralUtility::makeInstance(SiteFinder::class); } /** * Add sys_domains into $result data array * * @param array $result Initialized result array * @return array Result filled with more data */ public function addData(array $result): array { if ($result['tableName'] === 'tt_content' && isset($result['processedTca']['columns']['skilldisplay_skillset'])) { $api = new SkillSet( (new SettingsFactory($this->siteFinder))->createFromPageUid($result['parentPageRow']['uid']), GeneralUtility::makeInstance(Client::class) ); $skillSets = $api->getAll(); foreach ($skillSets as $skillSet) { $result['processedTca']['columns']['skilldisplay_skillset']['config']['valuePicker']['items'][] = [ $skillSet->getName(), $skillSet->getId(), ]; } } return $result; } }