[TASK] Extend RecordInterface
The RecordInterface is extended to require implementations to implement the `getRawRecord()` and `getSystemProperties()` methods as well as the PSR-11 `ContainerInterface`. This allows to change RecordFactory's `createRecord()` method to return the interface instead of the `Record` object. This will come in handy e.g. for the already existing `Page` object, which can now be used without extending `Record`. By using the `ContainerInterface` we allow access to the record and its properties via the has() and get() methods, which is supported since Fluid 4.0: https://github.com/TYPO3/Fluid/issues/1001. Resolves: #104859 Releases: main Change-Id: Ib8d20dc4eea343bf1c2160dbab6d4301930792ee Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85925 Reviewed-by:Benni Mack <benni@typo3.org> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Preview/FluidBasedContentPreviewRenderer.php 1 addition, 0 deletions...kend/Classes/Preview/FluidBasedContentPreviewRenderer.php
- typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php 15 additions, 13 deletions...ackend/Classes/Preview/StandardContentPreviewRenderer.php
- typo3/sysext/core/Classes/DataHandling/RecordFieldTransformer.php 1 addition, 1 deletion...sext/core/Classes/DataHandling/RecordFieldTransformer.php
- typo3/sysext/core/Classes/Domain/Exception/IncompleteRecordException.php 25 additions, 0 deletions...re/Classes/Domain/Exception/IncompleteRecordException.php
- typo3/sysext/core/Classes/Domain/Exception/RecordPropertyException.php 26 additions, 0 deletions...core/Classes/Domain/Exception/RecordPropertyException.php
- typo3/sysext/core/Classes/Domain/Exception/RecordPropertyNotFoundException.php 26 additions, 0 deletions...sses/Domain/Exception/RecordPropertyNotFoundException.php
- typo3/sysext/core/Classes/Domain/RawRecord.php 16 additions, 21 deletionstypo3/sysext/core/Classes/Domain/RawRecord.php
- typo3/sysext/core/Classes/Domain/Record.php 27 additions, 26 deletionstypo3/sysext/core/Classes/Domain/Record.php
- typo3/sysext/core/Classes/Domain/RecordFactory.php 47 additions, 29 deletionstypo3/sysext/core/Classes/Domain/RecordFactory.php
- typo3/sysext/core/Classes/Domain/RecordInterface.php 8 additions, 1 deletiontypo3/sysext/core/Classes/Domain/RecordInterface.php
- typo3/sysext/core/Documentation/Changelog/13.2/Feature-103783-RecordTransformationDataProcessor.rst 3 additions, 3 deletions...13.2/Feature-103783-RecordTransformationDataProcessor.rst
- typo3/sysext/core/Tests/Functional/DataHandling/RecordFieldTransformerTest.php 200 additions, 189 deletions...ts/Functional/DataHandling/RecordFieldTransformerTest.php
- typo3/sysext/core/Tests/Functional/Domain/RecordFactoryTest.php 48 additions, 3 deletions...sysext/core/Tests/Functional/Domain/RecordFactoryTest.php
- typo3/sysext/core/Tests/Unit/Domain/RecordFactoryTest.php 4 additions, 4 deletionstypo3/sysext/core/Tests/Unit/Domain/RecordFactoryTest.php
- typo3/sysext/frontend/Classes/DataProcessing/PageContentFetchingProcessor.php 1 addition, 1 deletion...d/Classes/DataProcessing/PageContentFetchingProcessor.php
- typo3/sysext/frontend/Classes/DataProcessing/RecordTransformationProcessor.php 1 addition, 0 deletions.../Classes/DataProcessing/RecordTransformationProcessor.php
Please register or sign in to comment