FluidTYPO3\Fluidcontent\Service\ConfigurationService::getContentTypeSelectorItems PHP Метод

getContentTypeSelectorItems() публичный Метод

public getContentTypeSelectorItems ( ) : array
Результат array
    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;
    }

Usage Example

 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;
 }
All Usage Examples Of FluidTYPO3\Fluidcontent\Service\ConfigurationService::getContentTypeSelectorItems