‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Migrations\TcaMigration Class Reference

Public Member Functions

 migrate (array $tca)
 
array getMessages ()
 

Protected Member Functions

 validateTcaType (array $tca)
 
 migrateColumnsConfig (array $tca)
 
array migratePagesLanguageOverlayRemoval (array $tca)
 
array removeEnableMultiSelectFilterTextfieldConfiguration (array $tca)
 
array removeSelIconFieldPath (array $tca)
 
array removeSetToDefaultOnCopy (array $tca)
 
 sanitizeControlSectionIntegrity (array $tca)
 
 removeExcludeFieldForTransOrigPointerField (array $tca)
 
 removeShowRecordFieldListField (array $tca)
 
array removeWorkspacePlaceholderShadowColumnsConfiguration (array $tca)
 
 migrateLanguageFieldToTcaTypeLanguage (array $tca)
 
 migrateSpecialLanguagesToTcaTypeLanguage (array $tca)
 
 removeShowRemovedLocalizationRecords (array $tca)
 
 migrateFileFolderConfiguration (array $tca)
 
 migrateLevelLinksPosition (array $tca)
 
 migrateRootUidToStartingPoints (array $tca)
 
 migrateInternalTypeFolderToTypeFolder (array $tca)
 
 migrateRequiredFlag (array $tca)
 
 migrateNullFlag (array $tca)
 
 migrateEmailFlagToEmailType (array $tca)
 
 migrateTypeNoneColsToSize (array $tca)
 
 migrateRenderTypeInputLinkToTypeLink (array $tca)
 
 migratePasswordAndSaltedPasswordToPasswordType (array $tca)
 
 migrateRenderTypeInputDateTimeToTypeDatetime (array $tca)
 
 migrateRenderTypeColorpickerToTypeColor (array $tca)
 
 removeAuthModeEnforce (array $tca)
 
 removeSelectAuthModeIndividualItemsKeyword (array $tca)
 
 migrateAuthMode (array $tca)
 
 migrateEvalIntAndDouble2ToTypeNumber (array $tca)
 
 removeAlwaysDescription (array $tca)
 
 removeCtrlCruserId (array $tca)
 
 migrateFalHandlingInInlineToTypeFile (array $tca)
 
 removeFalRelatedElementBrowserOptions (array $tca)
 
 removeFalRelatedOptionsFromTypeInline (array $tca)
 
 removePassContentFromTypeNone (array $tca)
 
 migrateItemsToAssociativeArray (array $tca)
 
 removeMmInsertFields (array $tca)
 
 removeMmHasUidField (array $tca)
 

Protected Attributes

array $messages = []
 

Detailed Description

Migrate TCA from old to new syntax. Used in bootstrap and Flex Form Data Structures.

Class and API may change any time.

Definition at line 30 of file TcaMigration.php.

Member Function Documentation

◆ getMessages()

array TYPO3\CMS\Core\Migrations\TcaMigration::getMessages ( )

Get messages of migrated fields. Can be used for deprecation messages after migrate() was called.

Returns
‪array Migration messages

Definition at line 95 of file TcaMigration.php.

References TYPO3\CMS\Core\Migrations\TcaMigration\$messages.

◆ migrate()

TYPO3\CMS\Core\Migrations\TcaMigration::migrate ( array  $tca)

Run some general TCA validations, then migrate old TCA to new TCA.

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.

Definition at line 45 of file TcaMigration.php.

References $tca, TYPO3\CMS\Core\Migrations\TcaMigration\migrateAuthMode(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateColumnsConfig(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateEmailFlagToEmailType(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateEvalIntAndDouble2ToTypeNumber(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateFalHandlingInInlineToTypeFile(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateFileFolderConfiguration(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateInternalTypeFolderToTypeFolder(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateItemsToAssociativeArray(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateLanguageFieldToTcaTypeLanguage(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateLevelLinksPosition(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateNullFlag(), TYPO3\CMS\Core\Migrations\TcaMigration\migratePagesLanguageOverlayRemoval(), TYPO3\CMS\Core\Migrations\TcaMigration\migratePasswordAndSaltedPasswordToPasswordType(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateRenderTypeColorpickerToTypeColor(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateRenderTypeInputDateTimeToTypeDatetime(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateRenderTypeInputLinkToTypeLink(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateRequiredFlag(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateRootUidToStartingPoints(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateSpecialLanguagesToTcaTypeLanguage(), TYPO3\CMS\Core\Migrations\TcaMigration\migrateTypeNoneColsToSize(), TYPO3\CMS\Core\Migrations\TcaMigration\removeAlwaysDescription(), TYPO3\CMS\Core\Migrations\TcaMigration\removeAuthModeEnforce(), TYPO3\CMS\Core\Migrations\TcaMigration\removeCtrlCruserId(), TYPO3\CMS\Core\Migrations\TcaMigration\removeEnableMultiSelectFilterTextfieldConfiguration(), TYPO3\CMS\Core\Migrations\TcaMigration\removeExcludeFieldForTransOrigPointerField(), TYPO3\CMS\Core\Migrations\TcaMigration\removeFalRelatedElementBrowserOptions(), TYPO3\CMS\Core\Migrations\TcaMigration\removeFalRelatedOptionsFromTypeInline(), TYPO3\CMS\Core\Migrations\TcaMigration\removeMmHasUidField(), TYPO3\CMS\Core\Migrations\TcaMigration\removeMmInsertFields(), TYPO3\CMS\Core\Migrations\TcaMigration\removePassContentFromTypeNone(), TYPO3\CMS\Core\Migrations\TcaMigration\removeSelectAuthModeIndividualItemsKeyword(), TYPO3\CMS\Core\Migrations\TcaMigration\removeSelIconFieldPath(), TYPO3\CMS\Core\Migrations\TcaMigration\removeSetToDefaultOnCopy(), TYPO3\CMS\Core\Migrations\TcaMigration\removeShowRecordFieldListField(), TYPO3\CMS\Core\Migrations\TcaMigration\removeShowRemovedLocalizationRecords(), TYPO3\CMS\Core\Migrations\TcaMigration\removeWorkspacePlaceholderShadowColumnsConfiguration(), TYPO3\CMS\Core\Migrations\TcaMigration\sanitizeControlSectionIntegrity(), and TYPO3\CMS\Core\Migrations\TcaMigration\validateTcaType().

◆ migrateAuthMode()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateAuthMode ( array  $tca)
protected

See if ['columns'][aField]['config']['authMode'] is not set to 'explicitAllow' and set it to this value if needed.

Definition at line 1010 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateColumnsConfig()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateColumnsConfig ( array  $tca)
protected

Find columns fields that don't have a 'config' section at all, add ['config']['type'] = 'none'; for those to enforce config

Parameters
array$tca‪Incoming TCA

Definition at line 128 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateEmailFlagToEmailType()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateEmailFlagToEmailType ( array  $tca)
protected

Migrates [config][eval] = 'email' to [config][type] = 'email' and removes 'email' from [config][eval]. If [config][eval] contains 'trim', it will also be removed. If [config][eval] becomes empty, the option will be removed completely.

Definition at line 623 of file TcaMigration.php.

References $tca, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateEvalIntAndDouble2ToTypeNumber()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateEvalIntAndDouble2ToTypeNumber ( array  $tca)
protected

Migrates [config][eval] = 'int' and [config][eval] = 'double2' to [config][type] = 'number'. 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.

Definition at line 1039 of file TcaMigration.php.

References $tca, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateFalHandlingInInlineToTypeFile()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateFalHandlingInInlineToTypeFile ( array  $tca)
protected

Migrates type='inline' with foreign_table='sys_file_reference' to type='file'. Removes table relation related options. Removes no longer available appearance options. Detects usage of "customControls" hook. Migrates renamed appearance options. Migrates allowed file extensions.

Definition at line 1133 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateFileFolderConfiguration()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateFileFolderConfiguration ( array  $tca)
protected

Moves the "fileFolder" configuration of TCA columns type=select into sub array "fileFolderConfig", while renaming those options.

Definition at line 407 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateInternalTypeFolderToTypeFolder()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateInternalTypeFolderToTypeFolder ( array  $tca)
protected

Migrates [config][internal_type] = 'folder' to [config][type] = 'folder'. Also removes [config][internal_type] completely, if present.

Definition at line 513 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateItemsToAssociativeArray()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateItemsToAssociativeArray ( array  $tca)
protected

Converts the item list of type "select", "radio" and "check" to an associated array.

// 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' ]

Definition at line 1387 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateLanguageFieldToTcaTypeLanguage()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateLanguageFieldToTcaTypeLanguage ( array  $tca)
protected

Replaces $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config] with $TCA[$mytable][columns][$TCA[$mytable][ctrl][languageField]][config][type] = 'language'

Definition at line 334 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateLevelLinksPosition()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateLevelLinksPosition ( array  $tca)
protected

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.

Definition at line 452 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateNullFlag()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateNullFlag ( array  $tca)
protected

Migrates [config][eval] = 'null' to [config][nullable] = true and removes 'null' from [config][eval]. If [config][eval] becomes empty, it will be removed completely.

Definition at line 583 of file TcaMigration.php.

References $tca, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migratePagesLanguageOverlayRemoval()

array TYPO3\CMS\Core\Migrations\TcaMigration::migratePagesLanguageOverlayRemoval ( array  $tca)
protected

Removes $TCA['pages_language_overlay'] if defined.

Returns
‪array the modified TCA structure

Definition at line 153 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migratePasswordAndSaltedPasswordToPasswordType()

TYPO3\CMS\Core\Migrations\TcaMigration::migratePasswordAndSaltedPasswordToPasswordType ( array  $tca)
protected

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]. Removes option [config][max], if set. Removes option [config][search], if set.

Definition at line 790 of file TcaMigration.php.

References $tca, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateRenderTypeColorpickerToTypeColor()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateRenderTypeColorpickerToTypeColor ( array  $tca)
protected

Migrates [config][renderType] = 'colorpicker' to [config][type] = 'color'. Removes [config][eval]. Removes option [config][max], if set.

Definition at line 917 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateRenderTypeInputDateTimeToTypeDatetime()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateRenderTypeInputDateTimeToTypeDatetime ( array  $tca)
protected

Migrates [config][renderType] = 'inputDateTime' to [config][type] = 'datetime'. 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

Definition at line 841 of file TcaMigration.php.

References $tca, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Database\Query\QueryHelper\getDateTimeFormats(), and TYPO3\CMS\Core\Database\Query\QueryHelper\getDateTimeTypes().

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateRenderTypeInputLinkToTypeLink()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateRenderTypeInputLinkToTypeLink ( array  $tca)
protected

Migrates [config][renderType] = 'inputLink' to [config][type] = 'link'. 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".

Definition at line 697 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateRequiredFlag()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateRequiredFlag ( array  $tca)
protected

Migrates [config][eval] = 'required' to [config][required] = true and removes 'required' from [config][eval]. If [config][eval] becomes empty, it will be removed completely.

Definition at line 544 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateRootUidToStartingPoints()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateRootUidToStartingPoints ( array  $tca)
protected

If a column has [treeConfig][rootUid] defined, migrate to [treeConfig][startingPoints] on the same level.

Definition at line 483 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateSpecialLanguagesToTcaTypeLanguage()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateSpecialLanguagesToTcaTypeLanguage ( array  $tca)
protected

Replaces $TCA[$mytable][columns][field][config][special] = 'languages' with $TCA[$mytable][columns][field][config][type] = 'language'

Definition at line 357 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ migrateTypeNoneColsToSize()

TYPO3\CMS\Core\Migrations\TcaMigration::migrateTypeNoneColsToSize ( array  $tca)
protected

Migrates type => "none" [config][cols] to [config][size] and removes "cols".

Definition at line 667 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeAlwaysDescription()

TYPO3\CMS\Core\Migrations\TcaMigration::removeAlwaysDescription ( array  $tca)
protected

Removes ['interface']['always_description'] and also ['interface'] if always_description was the only key in the array.

Definition at line 1093 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeAuthModeEnforce()

TYPO3\CMS\Core\Migrations\TcaMigration::removeAuthModeEnforce ( array  $tca)
protected

Remove ['columns'][aField]['config']['authMode_enforce']

Definition at line 955 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeCtrlCruserId()

TYPO3\CMS\Core\Migrations\TcaMigration::removeCtrlCruserId ( array  $tca)
protected

Remove ['ctrl']['cruser_id'].

Definition at line 1112 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeEnableMultiSelectFilterTextfieldConfiguration()

array TYPO3\CMS\Core\Migrations\TcaMigration::removeEnableMultiSelectFilterTextfieldConfiguration ( array  $tca)
protected

Removes configuration removeEnableMultiSelectFilterTextfield

Returns
‪array the modified TCA structure

Definition at line 169 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeExcludeFieldForTransOrigPointerField()

TYPO3\CMS\Core\Migrations\TcaMigration::removeExcludeFieldForTransOrigPointerField ( array  $tca)
protected

Removes $TCA[$mytable][columns][transOrigPointerField][exclude] if defined

Definition at line 268 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeFalRelatedElementBrowserOptions()

TYPO3\CMS\Core\Migrations\TcaMigration::removeFalRelatedElementBrowserOptions ( array  $tca)
protected

Removes the [appearance][elementBrowserType] and [appearance][elementBrowserAllowed] options from TCA type "group" fields.

Definition at line 1261 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeFalRelatedOptionsFromTypeInline()

TYPO3\CMS\Core\Migrations\TcaMigration::removeFalRelatedOptionsFromTypeInline ( array  $tca)
protected

Removes the following options from TCA type "inline" fields:

  • ‪[appearance][headerThumbnail]
  • ‪[appearance][fileUploadAllowed]
  • ‪[appearance][fileByUrlAllowed]

Definition at line 1304 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeMmHasUidField()

TYPO3\CMS\Core\Migrations\TcaMigration::removeMmHasUidField ( array  $tca)
protected

Definition at line 1462 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeMmInsertFields()

TYPO3\CMS\Core\Migrations\TcaMigration::removeMmInsertFields ( array  $tca)
protected

Definition at line 1444 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removePassContentFromTypeNone()

TYPO3\CMS\Core\Migrations\TcaMigration::removePassContentFromTypeNone ( array  $tca)
protected

Removes ['config']['pass_content'] from TCA type "none" fields

Definition at line 1346 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeSelectAuthModeIndividualItemsKeyword()

TYPO3\CMS\Core\Migrations\TcaMigration::removeSelectAuthModeIndividualItemsKeyword ( array  $tca)
protected

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.

Definition at line 977 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeSelIconFieldPath()

array TYPO3\CMS\Core\Migrations\TcaMigration::removeSelIconFieldPath ( array  $tca)
protected

Removes $TCA[$mytable][ctrl][selicon_field_path]

Returns
‪array the modified TCA structure

Definition at line 194 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeSetToDefaultOnCopy()

array TYPO3\CMS\Core\Migrations\TcaMigration::removeSetToDefaultOnCopy ( array  $tca)
protected

Removes $TCA[$mytable][ctrl][setToDefaultOnCopy]

Returns
‪array the modified TCA structure

Definition at line 212 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeShowRecordFieldListField()

TYPO3\CMS\Core\Migrations\TcaMigration::removeShowRecordFieldListField ( array  $tca)
protected

Removes $TCA[$mytable]['interface']['showRecordFieldList'] and also $TCA[$mytable]['interface'] if showRecordFieldList was the only key in the array.

Definition at line 288 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeShowRemovedLocalizationRecords()

TYPO3\CMS\Core\Migrations\TcaMigration::removeShowRemovedLocalizationRecords ( array  $tca)
protected

Definition at line 381 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ removeWorkspacePlaceholderShadowColumnsConfiguration()

array TYPO3\CMS\Core\Migrations\TcaMigration::removeWorkspacePlaceholderShadowColumnsConfiguration ( array  $tca)
protected

Removes $TCA[$mytable][ctrl][shadowColumnsForMovePlaceholders] and $TCA[$mytable][ctrl][shadowColumnsForNewPlaceholders]

Returns
‪array the modified TCA structure

Definition at line 311 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ sanitizeControlSectionIntegrity()

TYPO3\CMS\Core\Migrations\TcaMigration::sanitizeControlSectionIntegrity ( array  $tca)
protected

Ensures that system internal columns that are required for data integrity (e.g. localize or copy a record) are available in case they have been defined in $GLOBALS['TCA'][<table-name>]['ctrl'].

The list of references to usages below is not necessarily complete.

Parameters
array$tca
See also
‪\TYPO3\CMS\Core\DataHandling\DataHandler::fillInFieldArray()

Definition at line 236 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

◆ validateTcaType()

TYPO3\CMS\Core\Migrations\TcaMigration::validateTcaType ( array  $tca)
protected

Check for required TCA configuration

Parameters
array$tca‪Incoming TCA

Definition at line 105 of file TcaMigration.php.

References $tca.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\migrate().

Member Data Documentation

◆ $messages

array TYPO3\CMS\Core\Migrations\TcaMigration::$messages = []
protected

Definition at line 33 of file TcaMigration.php.

Referenced by TYPO3\CMS\Core\Migrations\TcaMigration\getMessages().