Skip to content

Commit 430af2e

Browse files
committed
[TASK] Change fluid variable _computed to computed
1 parent 6e457fb commit 430af2e

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

Classes/FormEngine/TtAddressPreviewRenderer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ protected function enrichRow(array $row): array
8080
$records = $this->getRecords($fieldConfiguration['table'], $settings['settings'][$fieldName]);
8181

8282
if ($fieldConfiguration['multiValue']) {
83-
$row['_computed'][$fieldName] = $records;
83+
$row['computed'][$fieldName] = $records;
8484
} else {
85-
$row['_computed'][$fieldName] = $records[0] ?: [];
85+
$row['computed'][$fieldName] = $records[0] ?: [];
8686
}
8787
}
8888
}
89-
$row['_computed']['lll'] = 'LLL:EXT:tt_address/Resources/Private/Language/ff/locallang_ff.xlf:pi1_flexform.';
89+
$row['computed']['lll'] = 'LLL:EXT:tt_address/Resources/Private/Language/ff/locallang_ff.xlf:pi1_flexform.';
9090
return $row;
9191
}
9292

@@ -108,7 +108,7 @@ protected function getRecords(string $table, string $idList): array
108108
->fetchAllAssociative();
109109

110110
foreach ($rows as &$row) {
111-
$row['_computed']['title'] = BackendUtility::getRecordTitle($table, $row);
111+
$row['computed']['title'] = BackendUtility::getRecordTitle($table, $row);
112112
}
113113
return $rows;
114114
}

Resources/Private/Templates/Backend/PluginPreview.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,34 @@
1313
<tbody>
1414
<f:if condition="{flex.displayMode}">
1515
<tr>
16-
<th>{f:translate(key:'{_computed.lll}displayMode')}</th>
16+
<th>{f:translate(key:'{computed.lll}displayMode')}</th>
1717
<td>
1818
<f:switch expression="{flex.displayMode}">
19-
<f:case value="list">{f:translate(key:'{_computed.lll}displayMode.listView')}</f:case>
20-
<f:case value="single">{f:translate(key:'{_computed.lll}displayMode.singleView')}
19+
<f:case value="list">{f:translate(key:'{computed.lll}displayMode.listView')}</f:case>
20+
<f:case value="single">{f:translate(key:'{computed.lll}displayMode.singleView')}
2121
</f:case>
22-
<f:case value="map">{f:translate(key:'{_computed.lll}displayMode.map')}</f:case>
22+
<f:case value="map">{f:translate(key:'{computed.lll}displayMode.map')}</f:case>
2323
<f:defaultCase>{flex.displayMode}</f:defaultCase>
2424
</f:switch>
2525
</td>
2626
</tr>
2727
</f:if>
28-
<f:if condition="{_computed.singleRecords}">
28+
<f:if condition="{computed.singleRecords}">
2929
<tr>
30-
<th>{f:translate(key:'{_computed.lll}single_records')}</th>
30+
<th>{f:translate(key:'{computed.lll}single_records')}</th>
3131
<td>
32-
<f:for each="{_computed.singleRecords}" as="row">
32+
<f:for each="{computed.singleRecords}" as="row">
3333
<f:render section="rowElement" arguments="{table:'tt_address', row:row}"/>
3434
</f:for>
3535
</td>
3636
</tr>
3737
</f:if>
38-
<f:if condition="{_computed.pages}">
38+
<f:if condition="{computed.pages}">
3939
<tr>
4040
<th>{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.startingpoint')}
4141
</th>
4242
<td>
43-
<f:for each="{_computed.pages}" as="row">
43+
<f:for each="{computed.pages}" as="row">
4444
<f:render section="rowElement" arguments="{table:'pages', row:row}"/>
4545
</f:for>
4646
<f:if condition="{flex.recursive}">
@@ -50,35 +50,35 @@
5050
</td>
5151
</tr>
5252
</f:if>
53-
<f:if condition="{_computed.singlePid}">
53+
<f:if condition="{computed.singlePid}">
5454
<tr>
55-
<th>{f:translate(key:'{_computed.lll}singlePid')}</th>
55+
<th>{f:translate(key:'{computed.lll}singlePid')}</th>
5656
<td>
57-
<f:render section="rowElement" arguments="{table:'pages', row:_computed.singlePid}"/>
57+
<f:render section="rowElement" arguments="{table:'pages', row:computed.singlePid}"/>
5858
</td>
5959
</tr>
6060
</f:if>
61-
<f:if condition="{_computed.groups}">
61+
<f:if condition="{computed.groups}">
6262
<tr>
63-
<th>{f:translate(key:'{_computed.lll}group_selection')}</th>
63+
<th>{f:translate(key:'{computed.lll}group_selection')}</th>
6464
<td>
65-
<f:for each="{_computed.groups}" as="row">
65+
<f:for each="{computed.groups}" as="row">
6666
<f:render section="rowElement" arguments="{table:'sys_category', row:row}"/>
6767
</f:for>
6868
<hr style="margin:5px"/>
69-
{f:translate(key:'{_computed.lll}combination')}:
69+
{f:translate(key:'{computed.lll}combination')}:
7070
<f:if condition="{flex.groupsCombination}">
7171
<f:then>
72-
{f:translate(key:'{_computed.lll}combination.or')}
72+
{f:translate(key:'{computed.lll}combination.or')}
7373
</f:then>
7474
<f:else>
75-
{f:translate(key:'{_computed.lll}combination.and')}
75+
{f:translate(key:'{computed.lll}combination.and')}
7676
</f:else>
7777
</f:if>
7878
<br>
7979
<f:if condition="{flex.includeSubcategories}">
8080
<core:icon identifier="actions-check" size="small"/>
81-
{f:translate(key:'{_computed.lll}includeSubcategories')}
81+
{f:translate(key:'{computed.lll}includeSubcategories')}
8282
</f:if>
8383
</td>
8484
</tr>
@@ -90,6 +90,6 @@
9090
<a href="#" class="t3js-contextmenutrigger" data-table="{table}" data-uid="{row.uid}" title="id={row.uid}">
9191
<core:iconForRecord row="{row}" table="{table}"/>
9292
</a>
93-
{row._computed.title}<br>
93+
{row.computed.title}<br>
9494
</f:section>
9595
</html>

0 commit comments

Comments
 (0)