getContentTypeSelectorItems() public method

 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;
 }
Example #2
0
 /**
  * @param array $record
  * @param array $configuration
  * @return array
  */
 public function processTableConfiguration(array $row, array $configuration)
 {
     if ($row['CType'] === $this->contentObjectType) {
         // Create values for the fluidcontent type selector
         $configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'] = array_merge($configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'], $this->contentConfigurationService->getContentTypeSelectorItems());
         // Filter by which fluidcontent types are allowed by backend user group
         $configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'] = $this->getContentTypeFilter($configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'])->filterItemsByGroupAccess();
         // Filter by which fluidcontent types are allowed by content area, if element is nested
         if (!empty($row['tx_flux_parent']) && !empty($row['tx_flux_column'])) {
             $filter = $this->getContentTypeFilter($configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items']);
             $configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'] = $this->getContentTypeFilter($configuration['processedTca']['columns']['tx_fed_fcefile']['config']['items'])->filterItemsByGridColumn($this->getGrid($this->recordService->getSingle('tt_content', '*', (int) $row['tx_flux_parent'])), $row['tx_flux_column']);
         }
     }
     return $configuration;
 }