/**
  * Set column types
  *
  * @param array $flexFormSettings The Settings from the FlexForm
  * @return void
  */
 public function setColumnTypes($flexFormSettings)
 {
     $columnTypes = $this->recordManagementRepository->getColumnTypes($this->table->getTableNames());
     $columnConfig = $flexFormSettings['columnConfiguration'];
     $types = $this->mergeColumnTypesWithColumnConfig($columnTypes, $columnConfig);
     // Sortable columns?
     if ($this->table->getTableType() == 'list' && $flexFormSettings['useSortableColumns']) {
         $sortableColumns = explode(',', $flexFormSettings['sortableColumns']);
         foreach ($sortableColumns as $sortableColumn) {
             $types[$sortableColumn]['sortable'] = TRUE;
         }
     }
     // Include hook to set custom column types
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ezqueries']['recordManagement']['hookSetColumnTypes'])) {
         foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ezqueries']['recordManagement']['hookSetColumnTypes'] as $_classRef) {
             $_procObj =& \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef);
             $types = $_procObj->hookSetColumnTypes($types, $this->table->getTableType());
         }
     }
     $this->table->setColumnTypes($types);
 }