|
@@ 895-912 (lines=18) @@
|
| 892 |
|
* @param array $tca Incoming TCA |
| 893 |
|
* @return array Migrated TCA |
| 894 |
|
*/ |
| 895 |
|
protected function migrateShowIfRteOption(array $tca): array |
| 896 |
|
{ |
| 897 |
|
foreach ($tca as $table => &$tableDefinition) { |
| 898 |
|
if (!isset($tableDefinition['columns']) || !is_array($tableDefinition['columns'])) { |
| 899 |
|
continue; |
| 900 |
|
} |
| 901 |
|
foreach ($tableDefinition['columns'] as $fieldName => &$fieldConfig) { |
| 902 |
|
if (isset($fieldConfig['config']) && $fieldConfig['config']['type'] === 'check') { |
| 903 |
|
if (isset($fieldConfig['config']['showIfRTE'])) { |
| 904 |
|
unset($fieldConfig['config']['showIfRTE']); |
| 905 |
|
$this->messages[] = 'The TCA setting \'showIfRTE\' was removed ' |
| 906 |
|
. 'in TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'; |
| 907 |
|
} |
| 908 |
|
} |
| 909 |
|
} |
| 910 |
|
} |
| 911 |
|
return $tca; |
| 912 |
|
} |
| 913 |
|
|
| 914 |
|
/** |
| 915 |
|
* Casts "versioningWS" to bool, and removes "versioning_followPages" |
|
@@ 2396-2414 (lines=19) @@
|
| 2393 |
|
* @param array $tca |
| 2394 |
|
* @return array |
| 2395 |
|
*/ |
| 2396 |
|
protected function migrateinputDateTimeMax(array $tca): array |
| 2397 |
|
{ |
| 2398 |
|
foreach ($tca as $table => &$tableDefinition) { |
| 2399 |
|
if (isset($tableDefinition['columns']) && is_array($tableDefinition['columns'])) { |
| 2400 |
|
foreach ($tableDefinition['columns'] as $fieldName => &$fieldConfig) { |
| 2401 |
|
if (isset($fieldConfig['config']['renderType'])) { |
| 2402 |
|
if ($fieldConfig['config']['renderType'] === 'inputDateTime') { |
| 2403 |
|
if (isset($fieldConfig['config']['max'])) { |
| 2404 |
|
unset($fieldConfig['config']['max']); |
| 2405 |
|
$this->messages[] = 'The config option \'max\' has been removed from the TCA for renderType=\'inputDateTime\' in ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'max\']'; |
| 2406 |
|
} |
| 2407 |
|
} |
| 2408 |
|
} |
| 2409 |
|
} |
| 2410 |
|
} |
| 2411 |
|
} |
| 2412 |
|
|
| 2413 |
|
return $tca; |
| 2414 |
|
} |
| 2415 |
|
|
| 2416 |
|
/** |
| 2417 |
|
* Migrate type='inline' properties 'foreign_types', 'foreign_selector_fieldTcaOverride' |