initializeResultArray(); $parameterArray = $this->data['parameterArray']; $itemValue = htmlspecialchars((string)$parameterArray['itemFormElValue'], ENT_QUOTES); $config = $parameterArray['fieldConf']['config']; $itemName = $parameterArray['itemFormElName']; $fieldId = StringUtility::getUniqueId('formengine-uuid-'); if (!isset($config['required'])) { $config['required'] = true; } if ($config['required'] && !Uuid::isValid($itemValue)) { // Note: This can only happen in case the TcaUuid data provider is not executed or a custom // data provider has changed the value afterwards. Since this can only happen in user code, // we throw an exception to inform the administrator about this misconfiguration. throw new \RuntimeException( 'Field "' . $this->data['fieldName'] . '" in table "' . $this->data['tableName'] . '" of type "uuid" defines the field to be required but does not contain a valid uuid. Make sure to properly generate a valid uuid value.', 1678895476 ); } $width = $this->formMaxWidth( MathUtility::forceIntegerInRange($config['size'] ?? $this->defaultInputWidth, $this->minimumInputWidth, $this->maxInputWidth) ); $attributes = [ 'id' => $fieldId, 'name' => $itemName, 'type' => 'text', 'readonly' => 'readonly', 'class' => 'form-control disabled', 'data-formengine-input-name' => $itemName, 'data-formengine-validation-rules' => $this->getValidationDataAsJsonString($config), ]; $uuidElement = ' '; $fieldInformationResult = $this->renderFieldInformation(); $fieldInformationHtml = $fieldInformationResult['html']; $resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $fieldInformationResult, false); if (($config['enableCopyToClipboard'] ?? true) !== false) { $uuidElement = '