Deprecation: #110865 - uuid option enableCopyToClipboard moved to appearance 

See forge#110865

Description 

The option enableCopyToClipboard of TCA type uuid has been moved to ['appearance']['copyToClipboard'] , in line with TCA type password and the appearance options of other types.

Impact 

TCA using enableCopyToClipboard for a field of type uuid , including columnsOverrides and FlexForm fields, is migrated automatically and a deprecation message is logged.

Overriding the option with TSconfig TCEFORM.<table>.<field>.config.enableCopyToClipboard still works, but triggers a PHP E_USER_DEPRECATED error and will stop working in TYPO3 v16.0.

Affected installations 

Installations with TCA or TSconfig disabling or enabling the copy to clipboard button of a field of type uuid via enableCopyToClipboard .

Migration 

Move the option to appearance :

EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_item.php
// Before
'identifier' => [
    'label' => 'Identifier',
    'config' => [
        'type' => 'uuid',
        'enableCopyToClipboard' => false,
    ],
],

// After
'identifier' => [
    'label' => 'Identifier',
    'config' => [
        'type' => 'uuid',
        'appearance' => [
            'copyToClipboard' => false,
        ],
    ],
],
Copied!

Adjust TSconfig accordingly:

EXT:my_extension/Configuration/page.tsconfig
# Before
TCEFORM.tx_myextension_domain_model_item.identifier.config.enableCopyToClipboard = 0

# After
TCEFORM.tx_myextension_domain_model_item.identifier.config.appearance.copyToClipboard = 0
Copied!