/**
  * @param array $row
  * @return \FluidTYPO3\Flux\Form|NULL
  */
 public function getForm(array $row)
 {
     $form = parent::getForm($row);
     if (NULL !== $form) {
         $moveSortingProperty = defined('FluidTYPO3\\Flux\\Form::OPTION_SORTING') && FALSE === $form->hasOption(Form::OPTION_SORTING) && TRUE === $form->hasOption('Fluidcontent.sorting');
         if (TRUE === $moveSortingProperty) {
             $form->setOption(Form::OPTION_SORTING, $form->getOption('Fluidcontent.sorting'));
         }
     }
     return $form;
 }
 /**
  * @param array $row
  * @return string
  */
 public function getExtensionKey(array $row)
 {
     $action = $row['tx_fed_fcefile'];
     if (FALSE !== strpos($action, ':')) {
         $extensionName = array_shift(explode(':', $action));
     }
     if (FALSE === empty($extensionName)) {
         $extensionKey = ExtensionNamingUtility::getExtensionKey($extensionName);
         return $extensionKey;
     }
     return parent::getExtensionKey($row);
 }
示例#3
0
 /**
  * Post-process the TCEforms DataStructure for a record associated
  * with this ConfigurationProvider
  *
  * @param array $row
  * @param mixed $dataStructure
  * @param array $conf
  * @return void
  */
 public function postProcessDataStructure(array &$row, &$dataStructure, array $conf)
 {
     parent::postProcessDataStructure($row, $dataStructure, $conf);
     if ($row['CType'] === $this->contentObjectType) {
         $dataStructure['meta']['dataStructurePointers'] = array('list_type' => '', 'CType' => $this->contentObjectType, 'tx_fed_fcefile' => $row['tx_fed_fcefile']);
     }
 }
 /**
  * @param array $row
  * @return array
  */
 public function getTemplatePaths(array $row)
 {
     $paths = parent::getTemplatePaths($row);
     $variant = $this->getVariant($row);
     if (FALSE === empty($variant)) {
         $extensionKey = ExtensionNamingUtility::getExtensionKey($variant);
         if (FALSE === empty($extensionKey)) {
             $overlayPaths = $this->configurationService->getViewConfigurationForExtensionName($extensionKey);
             $paths = array_merge_recursive($paths, $overlayPaths);
         }
     }
     return $paths;
 }