37 $table = $this->data[
'tableName'];
38 $recordTypeValue = $this->data[
'recordTypeValue'];
41 if (!empty($this->data[
'processedTca'][
'interface'][
'always_description'])) {
43 $languageService->loadSingleTableDescription($table);
47 $itemList = $this->data[
'processedTca'][
'types'][$recordTypeValue][
'showitem'];
49 $fieldsArray = GeneralUtility::trimExplode(
',', $itemList,
true);
53 if (strpos($fieldsArray[0],
'--div--') !== 0) {
54 array_unshift($fieldsArray,
'--div--;LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.generalTab');
57 $firstTabHasLabel = count(GeneralUtility::trimExplode(
';', $fieldsArray[0])) > 1;
58 if (!$firstTabHasLabel) {
59 $fieldsArray[0] =
'--div--;LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.generalTab';
63 foreach ($fieldsArray as $field) {
64 if (strpos($field,
'--div--') === 0) {
71 array_shift($fieldsArray);
76 $data[
'fieldsArray'] = $fieldsArray;
78 $data[
'renderType'] =
'tabsContainer';
80 $data[
'renderType'] =
'noTabsContainer';
83 return $this->nodeFactory->create(
$data)->render();