Deprecation: #110865 - uuid option enableCopyToClipboard moved to appearance
See forge#110865
Description
The option
enable of TCA type
uuid
has been
moved to
['appearance'], in line with TCA type
password
and the appearance options of other types.
Impact
TCA using
enable for a field of type
uuid
,
including
columns and FlexForm fields, is migrated
automatically and a deprecation message is logged.
Overriding the option with TSconfig
TCEFORM.<table>.<field>. still
works, but triggers a PHP
E_ 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
enable.
Migration
Move the option to
appearance
:
// Before
'identifier' => [
'label' => 'Identifier',
'config' => [
'type' => 'uuid',
'enableCopyToClipboard' => false,
],
],
// After
'identifier' => [
'label' => 'Identifier',
'config' => [
'type' => 'uuid',
'appearance' => [
'copyToClipboard' => false,
],
],
],
Adjust TSconfig accordingly:
# Before
TCEFORM.tx_myextension_domain_model_item.identifier.config.enableCopyToClipboard = 0
# After
TCEFORM.tx_myextension_domain_model_item.identifier.config.appearance.copyToClipboard = 0