| @@ 1375-1377 (lines=3) @@ | ||
| 1372 | */ |
|
| 1373 | protected function isRelationField(string $tableName, string $fieldName): bool |
|
| 1374 | { |
|
| 1375 | if (empty($GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['type'])) { |
|
| 1376 | return false; |
|
| 1377 | } |
|
| 1378 | ||
| 1379 | $configuration = $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']; |
|
| 1380 | ||
| @@ 1404-1406 (lines=3) @@ | ||
| 1401 | */ |
|
| 1402 | protected function isInlineRelationField(string $tableName, string $fieldName): bool |
|
| 1403 | { |
|
| 1404 | if (empty($GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']['type'])) { |
|
| 1405 | return false; |
|
| 1406 | } |
|
| 1407 | ||
| 1408 | $configuration = $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']; |
|
| 1409 | ||
| @@ 1212-1214 (lines=3) @@ | ||
| 1209 | */ |
|
| 1210 | public static function resolveFileReferences($tableName, $fieldName, $element, $workspaceId = null) |
|
| 1211 | { |
|
| 1212 | if (empty($GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'])) { |
|
| 1213 | return null; |
|
| 1214 | } |
|
| 1215 | $configuration = $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config']; |
|
| 1216 | if (empty($configuration['type']) || $configuration['type'] !== 'inline' |
|
| 1217 | || empty($configuration['foreign_table']) || $configuration['foreign_table'] !== 'sys_file_reference' |
|