コード例 #1
0
ファイル: PageProvider.php プロジェクト: hhoechtl/fluidpages
 /**
  * @param array $row
  * @return array
  */
 public function getFlexFormValues(array $row)
 {
     $fieldName = $this->getFieldName($row);
     $form = $this->getForm($row);
     $immediateConfiguration = $this->configurationService->convertFlexFormContentToArray($row[$fieldName], $form, NULL, NULL);
     $inheritedConfiguration = $this->getInheritedConfiguration($row);
     $merged = RecursiveArrayUtility::merge($inheritedConfiguration, $immediateConfiguration);
     return $merged;
 }
コード例 #2
0
 /**
  * @param array $row
  * @return array
  */
 public function getFlexFormValuesSingle(array $row)
 {
     $fieldName = $this->getFieldName($row);
     $form = $this->getForm($row);
     // legacy language handling, this was deprecated in TYPO3 7.6 (Deprecation: #70138 Flex form language handling)
     // this should stay here for a little while and be removed at some point in the future
     $languageRef = null;
     if ($GLOBALS['TSFE']->sys_language_uid > 0) {
         $languageRef = 'l' . $GLOBALS['TSFE']->config['config']['language'];
     }
     $immediateConfiguration = $this->pageConfigurationService->convertFlexFormContentToArray($row[$fieldName], $form, $languageRef, null);
     $immediateConfiguration = $this->overlayFlexFormValues($row, $immediateConfiguration, $form);
     return $immediateConfiguration;
 }