public function getContentTypeSelectorItems() { $items = array(); $types = $this->getContentElementFormInstances(); foreach ($types as $group => $forms) { $enabledElements = array(); foreach ($forms as $form) { $enabledElements[] = array($form->getLabel(), $form->getOption('contentElementId'), '..' . MiscellaneousUtility::getIconForTemplate($form)); } if (!empty($enabledElements)) { $items[] = array($group, '--div--'); $items = array_merge($items, $enabledElements); } } return $items; }
public function processTableConfiguration(array $row, array $configuration) { // Create values for the fluidcontent type selectors $configuration['processedTca']['columns']['tx_fluidcontent_allowedfluidcontent']['config']['items'] = $this->contentConfigurationService->getContentTypeSelectorItems(); $configuration['processedTca']['columns']['tx_fluidcontent_deniedfluidcontent']['config']['items'] = $this->contentConfigurationService->getContentTypeSelectorItems(); return $configuration; }