2 declare(strict_types = 1);
36 $parameterArray = $this->data[
'parameterArray'];
39 if (empty($parameterArray[
'fieldConf'][
'config'][
'userFunc'])) {
43 $resultArray[
'html'] =
'<div class="alert alert-warning">';
44 $resultArray[
'html'] .=
'This is dummy output: Field <code>' . htmlspecialchars($this->data[
'fieldName']) .
'</code>';
45 $resultArray[
'html'] .=
'of table <code>' . htmlspecialchars($this->data[
'tableName']) .
'</code>';
46 $resultArray[
'html'] .=
' is registered as type="user" element without a specific renderType.';
47 $resultArray[
'html'] .=
' Please look up details in TCA reference documentation for type="user".';
48 $resultArray[
'html'] .=
'</div>';
54 'Properties "userFunc", "noTableWrapping" and "parameters" will be removed in TYPO3 v10.0. Use a renderType instead.',
57 $parameterArray[
'table'] = $this->data[
'tableName'];
58 $parameterArray[
'field'] = $this->data[
'fieldName'];
59 $parameterArray[
'row'] = $this->data[
'databaseRow'];
60 $parameterArray[
'parameters'] = $parameterArray[
'fieldConf'][
'config'][
'parameters'] ?? [];
61 $html = GeneralUtility::callUserFunction(
62 $parameterArray[
'fieldConf'][
'config'][
'userFunc'],
66 if (!isset($parameterArray[
'fieldConf'][
'config'][
'noTableWrapping'])
67 || (
bool)$parameterArray[
'fieldConf'][
'config'][
'noTableWrapping'] ===
false
69 $html =
'<div class="formengine-field-item t3js-formengine-field-item">' . $html .
'</div>';
71 $resultArray[
'html'] = $html;