getLanguageService(); $table = $this->data['tableName']; $row = $this->data['databaseRow']; $fieldName = $this->data['fieldName']; $flexFormFormPrefix = $this->data['flexFormFormPrefix']; $flexFormDataStructureArray = $this->data['flexFormDataStructureArray']; $flexFormContainerIdentifier = $this->data['flexFormContainerIdentifier']; $actionFieldName = 'data[' . $table . '][' . $row['uid'] . '][' . $fieldName . ']' . $flexFormFormPrefix . '[' . $flexFormContainerIdentifier . ']' . '[_ACTION]'; $moveAndDeleteContent = []; $userHasAccessToDefaultLanguage = $this->getBackendUserAuthentication()->checkLanguageAccess(0); if ($userHasAccessToDefaultLanguage) { $moveAndDeleteContent[] = '' . ''; $moveAndDeleteContent[] = '' . ''; } $options = $this->data; // Append container specific stuff to field prefix $options['flexFormFormPrefix'] = $flexFormFormPrefix . '[' . $flexFormContainerIdentifier . '][' . $this->data['flexFormContainerName'] . '][el]'; $options['flexFormDataStructureArray'] = $flexFormDataStructureArray['el']; $options['renderType'] = 'flexFormElementContainer'; $containerContentResult = $this->nodeFactory->create($options)->render(); $containerTitle = ''; if (!empty(trim($flexFormDataStructureArray['title']))) { $containerTitle = $languageService->sL(trim($flexFormDataStructureArray['title'])); } $resultArray = $this->initializeResultArray(); $parentSectionContainer = sprintf('flexform-section-container-%s-%s-%s-%s', $this->data['flexFormSheetName'], $this->data['fieldName'], md5($this->data['flexFormFieldName']), md5($this->data['elementBaseName'])); $flexFormDomContainerId = sprintf('%s-%s', $parentSectionContainer, $flexFormContainerIdentifier); $containerAttributes = [ 'class' => 'panel panel-default t3js-flex-section', 'data-parent' => $parentSectionContainer, 'data-flexform-container-id' => $flexFormContainerIdentifier, ]; $panelHeaderAttributes = [ 'class' => 'panel-heading', ]; $toggleAttributes = [ 'class' => 'panel-button collapsed', 'type' => 'button', 'data-bs-toggle' => 'collapse', 'data-bs-target' => '#' . $flexFormDomContainerId, 'aria-controls' => $flexFormDomContainerId, 'aria-expanded' => 'false', ]; $html = []; $html[] = '