[TASK] Use TCA schema for fetching relevant fields
Both ElementInformationController as well as RemoteServer previously booted up FormEngine to fetch relevant fields for being displayed in corresponding views. This is bad in multiple terms: performance, misuse of FormEngine, dependency to PSR-7, etc. Therefore, a new VisibleSchemaFieldsCollector is introduced, which uses the TCA schema to provide the fields to be displayed, depending on the record type, the language context and the current backend user. Resolves: #105185 Releases: main Change-Id: I1e39611db467105ddaf2427dc47c7bd94ef7a915 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86405 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php 25 additions, 35 deletions...ontroller/ContentElement/ElementInformationController.php
- typo3/sysext/core/Classes/Domain/RecordFactory.php 2 additions, 1 deletiontypo3/sysext/core/Classes/Domain/RecordFactory.php
- typo3/sysext/core/Classes/Schema/VisibleSchemaFieldsCollector.php 94 additions, 0 deletions...sext/core/Classes/Schema/VisibleSchemaFieldsCollector.php
- typo3/sysext/core/Tests/Functional/Schema/VisibleSchemaFieldsCollectorTest.php 167 additions, 0 deletions...ts/Functional/Schema/VisibleSchemaFieldsCollectorTest.php
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php 11 additions, 25 deletions...ext/workspaces/Classes/Controller/Remote/RemoteServer.php
- typo3/sysext/workspaces/Classes/Service/GridDataService.php 6 additions, 7 deletionstypo3/sysext/workspaces/Classes/Service/GridDataService.php
- typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php 3 additions, 5 deletions...kspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
Please register or sign in to comment