[FEATURE] Introduce backend layout data providers
Backend layouts are currently stored in the database as regular records. Since extension cannot ship their specific backend layout definitions, data providers become handy in providing the accordant information taken from e.g. static files in the file system. Data providers can be registered like shown in the follow and need to be implement DataProviderInterface of the namespace TYPO3\CMS\Backend\View\BackendLayout: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] ['BackendLayoutDataProvider'][$_EXTKEY] = 'Classname'; A DataProviderContext object is used to transport submitted data (e.g. table or field name) to the accordant data providers. Change-Id: I2e3d39e720c6d1bffa9a586148f0eea4cab0210e Resolves: #37208 Documentation: #52809 Releases: 6.2 Reviewed-on: https://review.typo3.org/11804 Reviewed-by: Oliver Hader Tested-by: Oliver Hader
Showing
- typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php 3 additions, 2 deletions...asses/Controller/ContentElement/MoveElementController.php
- typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php 185 additions, 0 deletions...sext/backend/Classes/View/BackendLayout/BackendLayout.php
- typo3/sysext/backend/Classes/View/BackendLayout/BackendLayoutCollection.php 127 additions, 0 deletions...nd/Classes/View/BackendLayout/BackendLayoutCollection.php
- typo3/sysext/backend/Classes/View/BackendLayout/DataProviderCollection.php 139 additions, 0 deletions...end/Classes/View/BackendLayout/DataProviderCollection.php
- typo3/sysext/backend/Classes/View/BackendLayout/DataProviderContext.php 142 additions, 0 deletions...ackend/Classes/View/BackendLayout/DataProviderContext.php
- typo3/sysext/backend/Classes/View/BackendLayout/DataProviderInterface.php 55 additions, 0 deletions...kend/Classes/View/BackendLayout/DataProviderInterface.php
- typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php 208 additions, 0 deletions...ackend/Classes/View/BackendLayout/DefaultDataProvider.php
- typo3/sysext/backend/Classes/View/BackendLayoutView.php 286 additions, 51 deletionstypo3/sysext/backend/Classes/View/BackendLayoutView.php
- typo3/sysext/backend/Classes/View/PageLayoutView.php 20 additions, 43 deletionstypo3/sysext/backend/Classes/View/PageLayoutView.php
- typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutCollectionTest.php 102 additions, 0 deletions...s/Unit/View/BackendLayout/BackendLayoutCollectionTest.php
- typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php 62 additions, 0 deletions...ckend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php
- typo3/sysext/backend/Tests/Unit/View/BackendLayout/DataProviderCollectionTest.php 115 additions, 0 deletions...ts/Unit/View/BackendLayout/DataProviderCollectionTest.php
- typo3/sysext/backend/Tests/Unit/View/BackendLayoutViewTest.php 222 additions, 0 deletions.../sysext/backend/Tests/Unit/View/BackendLayoutViewTest.php
- typo3/sysext/cms/locallang_tca.xlf 3 additions, 0 deletionstypo3/sysext/cms/locallang_tca.xlf
- typo3/sysext/core/Configuration/TCA/pages.php 2 additions, 4 deletionstypo3/sysext/core/Configuration/TCA/pages.php
- typo3/sysext/core/ext_tables.sql 2 additions, 2 deletionstypo3/sysext/core/ext_tables.sql
Please register or sign in to comment