[TASK] Implement missing delete functionality for FileReference
When working with a `FileReference` object, it is currently not possible to delete the file reference with the `delete()` method, since it has never been implemented. The `delete()` functionality can however be useful when working manually with file references. This change implements the missing functionality. Resolves: #102770 Releases: main, 12.4 Change-Id: I5fd8a26f9e4b98de1a6f7553be0da6b53f3bab1b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82362 Tested-by:Benni Mack <benni@typo3.org> Tested-by:
Oliver Klee <typo3-coding@oliverklee.de> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Resource/FileReference.php 12 additions, 8 deletionstypo3/sysext/core/Classes/Resource/FileReference.php
- typo3/sysext/core/Tests/Functional/Resource/FileReferenceTest.php 52 additions, 0 deletions...sext/core/Tests/Functional/Resource/FileReferenceTest.php
- typo3/sysext/core/Tests/Functional/Resource/Fixtures/FileReference.csv 6 additions, 0 deletions...core/Tests/Functional/Resource/Fixtures/FileReference.csv
Please register or sign in to comment