TcaMigration
Migrate TCA from old to new syntax.
Used in bootstrap and Flex Form Data Structures. This is to migrate from "old" to "new" TCA syntax, all methods must add a deprecation message if they change something.
Class and API may change any time.
Table of Contents
Methods
- migrate() : TcaProcessingResult
- Run some general TCA validations, then migrate old TCA to new TCA.
- addWorkspaceAwarenessToInlineChildren() : TcaProcessingResult
- Inline foreign_table relations with a parent being workspace aware and a child not being workspace aware are not supported. The method detects this scenario in parent columns (not in flex forms) and enforces workspace awareness of child tables.
- migrateAuthMode() : TcaProcessingResult
- See if ['columns'][aField]['config']['authMode'] is not set to 'explicitAllow' and set it to this value if needed.
- migrateColumnsConfig() : TcaProcessingResult
- Find columns fields that don't have a 'config' section at all, add ['config']['type'] = 'none'; for those to enforce config
- migrateEmailFlagToEmailType() : TcaProcessingResult
- Migrates [config][eval] = 'email' to [config][type] = 'email' and removes 'email' from [config][eval].
- migrateEvalIntAndDouble2ToTypeNumber() : TcaProcessingResult
- Migrates [config][eval] = 'int' and [config][eval] = 'double2' to [config][type] = 'number'.
- migrateFalHandlingInInlineToTypeFile() : TcaProcessingResult
- Migrates type='inline' with foreign_table='sys_file_reference' to type='file'.
- migrateFileFolderConfiguration() : TcaProcessingResult
- Moves the "fileFolder" configuration of TCA columns type=select into sub array "fileFolderConfig", while renaming those options.
- migrateInternalTypeFolderToTypeFolder() : TcaProcessingResult
- Migrates [config][internal_type] = 'folder' to [config][type] = 'folder'.
- migrateItemsOfValuePickerToAssociativeArray() : TcaProcessingResult
- Converts the item list of valuePicker to an associated array.
- migrateItemsToAssociativeArray() : TcaProcessingResult
- Converts the item list of type "select", "radio" and "check" to an associated array.
- migrateLanguageFieldToTcaTypeLanguage() : TcaProcessingResult
- Replaces $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config] with $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config][type] = 'language'
- migrateLevelLinksPosition() : TcaProcessingResult
- The [appearance][levelLinksPosition] option can be used to select the position of the level links. This option was previously misused to disable all those links by setting it to "none". Since all of those links can be disabled by a dedicated option, e.g. showNewRecordLink, this wizard sets those options to false and unsets the invalid levelLinksPosition value.
- migrateNullFlag() : TcaProcessingResult
- Migrates [config][eval] = 'null' to [config][nullable] = true and removes 'null' from [config][eval].
- migratePagesLanguageOverlayRemoval() : TcaProcessingResult
- Removes $TCA['pages_language_overlay'] if defined.
- migratePasswordAndSaltedPasswordToPasswordType() : TcaProcessingResult
- Migrates [config][eval] = 'password' and [config][eval] = 'saltedPassword' to [config][type] = 'password' Sets option "hashed" to FALSE if "saltedPassword" is not set for "password" Removes option [config][eval].
- migrateRenderTypeColorpickerToTypeColor() : TcaProcessingResult
- Migrates [config][renderType] = 'colorpicker' to [config][type] = 'color'.
- migrateRenderTypeInputDateTimeToTypeDatetime() : TcaProcessingResult
- Migrates [config][renderType] = 'inputDateTime' to [config][type] = 'datetime'.
- migrateRenderTypeInputLinkToTypeLink() : TcaProcessingResult
- Migrates [config][renderType] = 'inputLink' to [config][type] = 'link'.
- migrateRequiredFlag() : TcaProcessingResult
- Migrates [config][eval] = 'required' to [config][required] = true and removes 'required' from [config][eval].
- migrateRootUidToStartingPoints() : TcaProcessingResult
- If a column has [treeConfig][rootUid] defined, migrate to [treeConfig][startingPoints] on the same level.
- migrateSingleDataStructureConfiguration() : TcaProcessingResult
- migrateSpecialLanguagesToTcaTypeLanguage() : TcaProcessingResult
- Replaces $TCA[$mytable][columns][field][config][special] = 'languages' with $TCA[$mytable][columns][field][config][type] = 'language'
- migrateT3EditorToCodeEditor() : TcaProcessingResult
- migrateTypeNoneColsToSize() : TcaProcessingResult
- Migrates type => "none" [config][cols] to [config][size] and removes "cols".
- removeAllowLanguageSynchronizationFromColumnsOverrides() : TcaProcessingResult
- Setting "allowLanguageSynchronization" for columns via columnsOverride is currently not supported see Localization\State and therefore leads to an exception in the LocalizationStateSelector wizard.
- removeAlwaysDescription() : TcaProcessingResult
- Removes ['interface']['always_description'] and also ['interface'] if `always_description` was the only key in the array.
- removeAuthModeEnforce() : TcaProcessingResult
- Remove ['columns'][aField]['config']['authMode_enforce']
- removeCtrlCruserId() : TcaProcessingResult
- Remove ['ctrl']['cruser_id'].
- removeEnableMultiSelectFilterTextfieldConfiguration() : TcaProcessingResult
- Removes configuration removeEnableMultiSelectFilterTextfield
- removeEvalYearFlag() : TcaProcessingResult
- Removes [config][eval] = 'year'.
- removeExcludeFieldForTransOrigPointerField() : TcaProcessingResult
- Removes $TCA[$mytable][columns][_transOrigPointerField_][exclude] if defined
- removeFalRelatedElementBrowserOptions() : TcaProcessingResult
- Removes the [appearance][elementBrowserType] and [appearance][elementBrowserAllowed] options from TCA type "group" fields.
- removeFalRelatedOptionsFromTypeInline() : TcaProcessingResult
- Removes the following options from TCA type "inline" fields: - [appearance][headerThumbnail] - [appearance][fileUploadAllowed] - [appearance][fileByUrlAllowed]
- removeFieldSearchConfigOptions() : TcaProcessingResult
- Removes $[config][search]
- removeIsStaticControlOption() : TcaProcessingResult
- Removes $TCA[$mytable]['ctrl']['is_static']
- removeMaxDBListItems() : TcaProcessingResult
- Removes $TCA[$mytable]['interface']['maxDBListItems'], and 'maxSingleDBListItems' and also $TCA[$mytable]['interface'] if `interface` is empty later-on.
- removeMmHasUidField() : TcaProcessingResult
- removeMmInsertFields() : TcaProcessingResult
- removePassContentFromTypeNone() : TcaProcessingResult
- Removes ['config']['pass_content'] from TCA type "none" fields
- removeSearchFieldsControlOption() : TcaProcessingResult
- Removes $TCA[$mytable]['ctrl']['searchFields']
- removeSelectAuthModeIndividualItemsKeyword() : TcaProcessingResult
- If a column has authMode=individual and items with the corresponding key on position 5 defined, or if EXPL_ALLOW or EXPL_DENY is set for position 6, migrate or remove them.
- removeSelIconFieldPath() : TcaProcessingResult
- Removes $TCA[$mytable][ctrl][selicon_field_path]
- removeSetToDefaultOnCopy() : TcaProcessingResult
- Removes $TCA[$mytable][ctrl][setToDefaultOnCopy]
- removeShowRecordFieldListField() : TcaProcessingResult
- Removes $TCA[$mytable]['interface']['showRecordFieldList'] and also $TCA[$mytable]['interface'] if `showRecordFieldList` was the only key in the array.
- removeShowRemovedLocalizationRecords() : TcaProcessingResult
- removeSubTypesConfiguration() : TcaProcessingResult
- Removes the following sub types configuration options:
- removeWorkspacePlaceholderShadowColumnsConfiguration() : TcaProcessingResult
- Removes $TCA[$mytable][ctrl][shadowColumnsForMovePlaceholders] and $TCA[$mytable][ctrl][shadowColumnsForNewPlaceholders]
- validateTcaType() : void
- Check for required TCA configuration
Methods
migrate()
Run some general TCA validations, then migrate old TCA to new TCA.
public
migrate(array<string|int, mixed> $tca) : TcaProcessingResult
This class is typically called within bootstrap with empty caches after all TCA files from extensions have been loaded. The migration is then applied and the migrated result is cached. For flex form TCA, this class is called dynamically if opening a record in the backend.
See unit tests for details.
Parameters
- $tca : array<string|int, mixed>
Return values
TcaProcessingResultaddWorkspaceAwarenessToInlineChildren()
Inline foreign_table relations with a parent being workspace aware and a child not being workspace aware are not supported. The method detects this scenario in parent columns (not in flex forms) and enforces workspace awareness of child tables.
protected
addWorkspaceAwarenessToInlineChildren(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateAuthMode()
See if ['columns'][aField]['config']['authMode'] is not set to 'explicitAllow' and set it to this value if needed.
protected
migrateAuthMode(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateColumnsConfig()
Find columns fields that don't have a 'config' section at all, add ['config']['type'] = 'none'; for those to enforce config
protected
migrateColumnsConfig(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateEmailFlagToEmailType()
Migrates [config][eval] = 'email' to [config][type] = 'email' and removes 'email' from [config][eval].
protected
migrateEmailFlagToEmailType(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
If [config][eval] contains 'trim', it will also be removed. If [config][eval] becomes empty, the option will be removed completely.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateEvalIntAndDouble2ToTypeNumber()
Migrates [config][eval] = 'int' and [config][eval] = 'double2' to [config][type] = 'number'.
protected
migrateEvalIntAndDouble2ToTypeNumber(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
The migration only applies to fields without a renderType defined. Adds [config][format] = "decimal" if [config][eval] = double2 Removes [config][eval]. Removes option [config][max], if set.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateFalHandlingInInlineToTypeFile()
Migrates type='inline' with foreign_table='sys_file_reference' to type='file'.
protected
migrateFalHandlingInInlineToTypeFile(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Removes table relation related options. Removes no longer available appearance options. Detects usage of "customControls" hook. Migrates renamed appearance options. Migrates allowed file extensions.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateFileFolderConfiguration()
Moves the "fileFolder" configuration of TCA columns type=select into sub array "fileFolderConfig", while renaming those options.
protected
migrateFileFolderConfiguration(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateInternalTypeFolderToTypeFolder()
Migrates [config][internal_type] = 'folder' to [config][type] = 'folder'.
protected
migrateInternalTypeFolderToTypeFolder(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Also removes [config][internal_type] completely, if present.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateItemsOfValuePickerToAssociativeArray()
Converts the item list of valuePicker to an associated array.
protected
migrateItemsOfValuePickerToAssociativeArray(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
// From: [ 0 => 'A label', 1 => 'value', ]
// To: [ 'label' => 'A label', 'value' => 'value', ]
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateItemsToAssociativeArray()
Converts the item list of type "select", "radio" and "check" to an associated array.
protected
migrateItemsToAssociativeArray(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
// From: [ 0 => 'A label', 1 => 'value', 2 => 'icon-identifier', 3 => 'group1', 4 => 'a custom description' ]
// To: [ 'label' => 'A label', 'value' => 'value', 'icon' => 'icon-identifier', 'group' => 'group1', 'description' => 'a custom description' ]
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateLanguageFieldToTcaTypeLanguage()
Replaces $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config] with $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config][type] = 'language'
protected
migrateLanguageFieldToTcaTypeLanguage(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateLevelLinksPosition()
The [appearance][levelLinksPosition] option can be used to select the position of the level links. This option was previously misused to disable all those links by setting it to "none". Since all of those links can be disabled by a dedicated option, e.g. showNewRecordLink, this wizard sets those options to false and unsets the invalid levelLinksPosition value.
protected
migrateLevelLinksPosition(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateNullFlag()
Migrates [config][eval] = 'null' to [config][nullable] = true and removes 'null' from [config][eval].
protected
migrateNullFlag(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
If [config][eval] becomes empty, it will be removed completely.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigratePagesLanguageOverlayRemoval()
Removes $TCA['pages_language_overlay'] if defined.
protected
migratePagesLanguageOverlayRemoval(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigratePasswordAndSaltedPasswordToPasswordType()
Migrates [config][eval] = 'password' and [config][eval] = 'saltedPassword' to [config][type] = 'password' Sets option "hashed" to FALSE if "saltedPassword" is not set for "password" Removes option [config][eval].
protected
migratePasswordAndSaltedPasswordToPasswordType(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Removes option [config][max], if set. Removes option [config][search], if set.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateRenderTypeColorpickerToTypeColor()
Migrates [config][renderType] = 'colorpicker' to [config][type] = 'color'.
protected
migrateRenderTypeColorpickerToTypeColor(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Removes [config][eval]. Removes option [config][max], if set.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateRenderTypeInputDateTimeToTypeDatetime()
Migrates [config][renderType] = 'inputDateTime' to [config][type] = 'datetime'.
protected
migrateRenderTypeInputDateTimeToTypeDatetime(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Migrates "date", "time" and "timesec" from [config][eval] to [config][format]. Removes option [config][eval]. Removes option [config][max], if set. Removes option [config][format], if set. Removes option [config][default], if the default is the native "empty" value
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateRenderTypeInputLinkToTypeLink()
Migrates [config][renderType] = 'inputLink' to [config][type] = 'link'.
protected
migrateRenderTypeInputLinkToTypeLink(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Migrates the [config][fieldConfig][linkPopup] to type specific configuration. Removes option [config][eval]. Removes option [config][max], if set. Removes option [config][softref], if set to "typolink".
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateRequiredFlag()
Migrates [config][eval] = 'required' to [config][required] = true and removes 'required' from [config][eval].
protected
migrateRequiredFlag(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
If [config][eval] becomes empty, it will be removed completely.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateRootUidToStartingPoints()
If a column has [treeConfig][rootUid] defined, migrate to [treeConfig][startingPoints] on the same level.
protected
migrateRootUidToStartingPoints(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateSingleDataStructureConfiguration()
protected
migrateSingleDataStructureConfiguration(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateSpecialLanguagesToTcaTypeLanguage()
Replaces $TCA[$mytable][columns][field][config][special] = 'languages' with $TCA[$mytable][columns][field][config][type] = 'language'
protected
migrateSpecialLanguagesToTcaTypeLanguage(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateT3EditorToCodeEditor()
protected
migrateT3EditorToCodeEditor(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultmigrateTypeNoneColsToSize()
Migrates type => "none" [config][cols] to [config][size] and removes "cols".
protected
migrateTypeNoneColsToSize(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveAllowLanguageSynchronizationFromColumnsOverrides()
Setting "allowLanguageSynchronization" for columns via columnsOverride is currently not supported see Localization\State and therefore leads to an exception in the LocalizationStateSelector wizard.
protected
removeAllowLanguageSynchronizationFromColumnsOverrides(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Therefore, the setting is removed for now and the integrator is informed accordingly.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveAlwaysDescription()
Removes ['interface']['always_description'] and also ['interface'] if `always_description` was the only key in the array.
protected
removeAlwaysDescription(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveAuthModeEnforce()
Remove ['columns'][aField]['config']['authMode_enforce']
protected
removeAuthModeEnforce(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveCtrlCruserId()
Remove ['ctrl']['cruser_id'].
protected
removeCtrlCruserId(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveEnableMultiSelectFilterTextfieldConfiguration()
Removes configuration removeEnableMultiSelectFilterTextfield
protected
removeEnableMultiSelectFilterTextfieldConfiguration(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveEvalYearFlag()
Removes [config][eval] = 'year'.
protected
removeEvalYearFlag(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
If [config][eval] becomes empty, it will be removed completely.
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveExcludeFieldForTransOrigPointerField()
Removes $TCA[$mytable][columns][_transOrigPointerField_][exclude] if defined
protected
removeExcludeFieldForTransOrigPointerField(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveFalRelatedElementBrowserOptions()
Removes the [appearance][elementBrowserType] and [appearance][elementBrowserAllowed] options from TCA type "group" fields.
protected
removeFalRelatedElementBrowserOptions(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveFalRelatedOptionsFromTypeInline()
Removes the following options from TCA type "inline" fields: - [appearance][headerThumbnail] - [appearance][fileUploadAllowed] - [appearance][fileByUrlAllowed]
protected
removeFalRelatedOptionsFromTypeInline(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveFieldSearchConfigOptions()
Removes $[config][search]
protected
removeFieldSearchConfigOptions(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveIsStaticControlOption()
Removes $TCA[$mytable]['ctrl']['is_static']
protected
removeIsStaticControlOption(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveMaxDBListItems()
Removes $TCA[$mytable]['interface']['maxDBListItems'], and 'maxSingleDBListItems' and also $TCA[$mytable]['interface'] if `interface` is empty later-on.
protected
removeMaxDBListItems(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveMmHasUidField()
protected
removeMmHasUidField(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveMmInsertFields()
protected
removeMmInsertFields(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremovePassContentFromTypeNone()
Removes ['config']['pass_content'] from TCA type "none" fields
protected
removePassContentFromTypeNone(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveSearchFieldsControlOption()
Removes $TCA[$mytable]['ctrl']['searchFields']
protected
removeSearchFieldsControlOption(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveSelectAuthModeIndividualItemsKeyword()
If a column has authMode=individual and items with the corresponding key on position 5 defined, or if EXPL_ALLOW or EXPL_DENY is set for position 6, migrate or remove them.
protected
removeSelectAuthModeIndividualItemsKeyword(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveSelIconFieldPath()
Removes $TCA[$mytable][ctrl][selicon_field_path]
protected
removeSelIconFieldPath(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveSetToDefaultOnCopy()
Removes $TCA[$mytable][ctrl][setToDefaultOnCopy]
protected
removeSetToDefaultOnCopy(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveShowRecordFieldListField()
Removes $TCA[$mytable]['interface']['showRecordFieldList'] and also $TCA[$mytable]['interface'] if `showRecordFieldList` was the only key in the array.
protected
removeShowRecordFieldListField(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveShowRemovedLocalizationRecords()
protected
removeShowRemovedLocalizationRecords(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveSubTypesConfiguration()
Removes the following sub types configuration options:
protected
removeSubTypesConfiguration(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
- subtype_value_field
- subtypes_addlist
- subtypes_excludelist
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultremoveWorkspacePlaceholderShadowColumnsConfiguration()
Removes $TCA[$mytable][ctrl][shadowColumnsForMovePlaceholders] and $TCA[$mytable][ctrl][shadowColumnsForNewPlaceholders]
protected
removeWorkspacePlaceholderShadowColumnsConfiguration(TcaProcessingResult $tcaProcessingResult) : TcaProcessingResult
Parameters
- $tcaProcessingResult : TcaProcessingResult
Return values
TcaProcessingResultvalidateTcaType()
Check for required TCA configuration
protected
validateTcaType(array<string|int, mixed> $tca) : void
Parameters
- $tca : array<string|int, mixed>