[FEATURE] Introduce TCA type "uuid"
A new TCA type "uuid" is introduced, which allows to simplify the configuration when working with fields, containing a UUID. The functionality is based on the Uid symfony component. FormEngine will automatically create a UUID when non is defined yet. Same does the DataHandler in case an invalid UUID is defined, while the field is defined as "required", which is the default. The UUID is displayed as a readonly input field. Using the new TCA type, corresponding database columns are added automatically. Resolves: #100171 Releases: main Change-Id: Ic81d4cc0158e77988e38cdab6ddcc5d42aa47fcd Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76891 Reviewed-by:Benni Mack <benni@typo3.org> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Markus Klein <markus.klein@typo3.org> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Frank Nägler <frank.naegler@typo3.com> Reviewed-by:
Frank Nägler <frank.naegler@typo3.com>
Showing
- typo3/sysext/backend/Classes/Form/Element/UuidElement.php 119 additions, 0 deletionstypo3/sysext/backend/Classes/Form/Element/UuidElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 1 addition, 0 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaUuid.php 49 additions, 0 deletions.../sysext/backend/Classes/Form/FormDataProvider/TcaUuid.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php 1 addition, 0 deletions...sysext/backend/Classes/Form/Utility/FormEngineUtility.php
- typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php 21 additions, 22 deletions.../sysext/backend/Classes/RecordList/DatabaseRecordList.php
- typo3/sysext/backend/Classes/Search/LiveSearch/DatabaseRecordProvider.php 1 addition, 0 deletions...kend/Classes/Search/LiveSearch/DatabaseRecordProvider.php
- typo3/sysext/backend/Resources/Private/Language/locallang_copytoclipboard.xlf 3 additions, 0 deletions.../Resources/Private/Language/locallang_copytoclipboard.xlf
- typo3/sysext/backend/Tests/Unit/Form/Element/UuidElementTest.php 164 additions, 0 deletions...ysext/backend/Tests/Unit/Form/Element/UuidElementTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaUuidTest.php 226 additions, 0 deletions.../backend/Tests/Unit/Form/FormDataProvider/TcaUuidTest.php
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 28 additions, 0 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/DataHandling/TableColumnType.php 1 addition, 0 deletionstypo3/sysext/core/Classes/DataHandling/TableColumnType.php
- typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php 19 additions, 0 deletions.../sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
- typo3/sysext/core/Classes/Resource/Search/QueryRestrictions/SearchTermRestriction.php 1 addition, 0 deletions...source/Search/QueryRestrictions/SearchTermRestriction.php
- typo3/sysext/core/Configuration/DefaultConfiguration.php 11 additions, 1 deletiontypo3/sysext/core/Configuration/DefaultConfiguration.php
- typo3/sysext/core/Documentation/Changelog/12.3/Feature-100171-IntroduceTCATypeUuid.rst 65 additions, 0 deletions...on/Changelog/12.3/Feature-100171-IntroduceTCATypeUuid.rst
- typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php 44 additions, 0 deletions...3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
- typo3/sysext/core/composer.json 1 addition, 0 deletionstypo3/sysext/core/composer.json
- typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php 1 addition, 0 deletions...ts/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php
- typo3/sysext/lowlevel/Classes/Controller/DatabaseIntegrityController.php 2 additions, 0 deletions...wlevel/Classes/Controller/DatabaseIntegrityController.php
Please register or sign in to comment