[TASK] Add resolved site object to FormEngine 90/57990/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 22 Aug 2018 16:00:30 +0000 (18:00 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 22 Aug 2018 17:07:37 +0000 (19:07 +0200)
commit6665ed6101e5123c9cf62d0c71c8ecaec433221b
treecaa78219caa1d0071ad4ba690719a9b4dd56dec8
parentd0b9af1048dc9cc56f7daf990a1324eb669dc3bb
[TASK] Add resolved site object to FormEngine

With pseudo sites we now always have a site object in backend.
The site object is needed multiple times in FormEngine, the
upcoming slug handling adds another usage.
The patch adds a FormEngine data provider to resolve the
site object for any given page or record and adds it as 'site'
to the result array.

Resolves: #85927
Releases: master
Change-Id: I7ebbd2e6591b54a54b6a5b56f95161b4ba6e5cee
Reviewed-on: https://review.typo3.org/57990
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Classes/Form/FormDataCompiler.php
typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseSystemLanguageRows.php
typo3/sysext/backend/Classes/Form/FormDataProvider/SiteResolving.php [new file with mode: 0644]
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php [new file with mode: 0644]
typo3/sysext/core/Configuration/DefaultConfiguration.php