2 namespace TYPO3\CMS\Backend\Form\Container;
39 $fieldsArray = $this->data[
'fieldsArray'];
44 $currentTabIndex = -1;
45 foreach ($fieldsArray as $fieldString) {
47 if ($fieldArray[
'fieldName'] ===
'--div--') {
49 if (empty($fieldArray[
'fieldLabel'])) {
50 throw new \RuntimeException(
51 'A --div-- has no label (--div--;fieldLabel) in showitem of ' . implode(
',', $fieldsArray),
55 $tabsArray[$currentTabIndex] = array(
56 'label' => $languageService->sL($fieldArray[
'fieldLabel']),
57 'elements' => array(),
60 $tabsArray[$currentTabIndex][
'elements'][] = $fieldArray;
65 $resultArray[
'requireJsModules'][] =
'TYPO3/CMS/Backend/Tabs';
69 $tabElements = array();
70 foreach ($tabsArray as $tabWithLabelAndElements) {
72 $elements = $tabWithLabelAndElements[
'elements'];
77 $options[
'tabAndInlineStack'][] = array(
79 $domIdPrefix .
'-' . $tabCounter,
81 $options[
'fieldsArray'] = array();
82 foreach ($elements as $element) {
83 $options[
'fieldsArray'][] = implode(
';', $element);
85 $options[
'renderType'] =
'paletteAndSingleContainer';
86 $childArray = $this->nodeFactory->create($options)->render();
88 $tabElements[] = array(
89 'label' => $tabWithLabelAndElements[
'label'],
90 'content' => $childArray[
'html'],
92 $childArray[
'html'] =
'';
96 $resultArray[
'html'] = $this->
renderTabMenu($tabElements, $domIdPrefix);