[!!!][TASK] Improve flex and TCA handling in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / Backend / AjaxRoutes.php
1 <?php
2 use TYPO3\CMS\Backend\Controller;
3
4 /**
5 * Definitions for routes provided by EXT:backend
6 * Contains all AJAX-based routes for entry points
7 *
8 * Currently the "access" property is only used so no token creation + validation is made
9 * but will be extended further.
10 */
11 return [
12
13 // Expand or toggle in legacy file tree
14 'sc_alt_file_navframe_expandtoggle' => [
15 'path' => '/folder/tree/expand',
16 'target' => Controller\FileSystemNavigationFrameController::class . '::ajaxExpandCollapse'
17 ],
18
19 // File processing
20 'file_process' => [
21 'path' => '/file/process',
22 'target' => Controller\File\FileController::class . '::processAjaxRequest'
23 ],
24
25 // Check if file exists
26 'file_exists' => [
27 'path' => '/file/exists',
28 'target' => Controller\File\FileController::class . '::fileExistsInFolderAction'
29 ],
30
31 // Get record details of a child record in IRRE
32 'record_inline_details' => [
33 'path' => '/record/inline/details',
34 'target' => Controller\FormInlineAjaxController::class . '::detailsAction'
35 ],
36
37 // Create new inline element
38 'record_inline_create' => [
39 'path' => '/record/inline/create',
40 'target' => Controller\FormInlineAjaxController::class . '::createAction'
41 ],
42
43 // Synchronize localization
44 'record_inline_synchronizelocalize' => [
45 'path' => '/record/inline/synchronizelocalize',
46 'target' => Controller\FormInlineAjaxController::class . '::synchronizeLocalizeAction'
47 ],
48
49 // Expand / Collapse inline record
50 'record_inline_expandcollapse' => [
51 'path' => '/record/inline/expandcollapse',
52 'target' => Controller\FormInlineAjaxController::class . '::expandOrCollapseAction'
53 ],
54
55 // Add a flex form section container
56 'record_flex_container_add' => [
57 'path' => '/record/flex/containeradd',
58 'target' => Controller\FormFlexAjaxController::class . '::containerAdd',
59 ],
60
61 // FormEngine suggest wizard result generator
62 'record_suggest' => [
63 'path' => '/wizard/suggest/search',
64 'target' => \TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::class . '::searchAction'
65 ],
66
67 // Fetch the tree-structured data from a record for the tree selection
68 'record_tree_data' => [
69 'path' => '/record/tree/fetchData',
70 'target' => Controller\FormSelectTreeAjaxController::class . '::fetchDataAction'
71 ],
72
73 // Get shortcut edit form
74 'shortcut_editform' => [
75 'path' => '/shortcut/editform',
76 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '::editFormAction'
77 ],
78
79 // Save edited shortcut
80 'shortcut_saveform' => [
81 'path' => '/shortcut/saveform',
82 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '::saveFormAction'
83 ],
84
85 // Render shortcut toolbar item
86 'shortcut_list' => [
87 'path' => '/shortcut/list',
88 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '::menuAction'
89 ],
90
91 // Delete a shortcut
92 'shortcut_remove' => [
93 'path' => '/shortcut/remove',
94 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '::removeShortcutAction'
95 ],
96
97 // Create a new shortcut
98 'shortcut_create' => [
99 'path' => '/shortcut/create',
100 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '::createShortcutAction'
101 ],
102
103 // Render systeminformtion toolbar item
104 'systeminformation_render' => [
105 'path' => '/system-information/render',
106 'target' => \TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class . '::renderMenuAction'
107 ],
108
109 // Reload the module menu
110 'modulemenu' => [
111 'path' => '/module-menu',
112 'target' => Controller\BackendController::class . '::getModuleMenu'
113 ],
114
115 // Log in into backend
116 'login' => [
117 'path' => '/login',
118 'target' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '::loginAction',
119 'access' => 'public'
120 ],
121
122 // Log out from backend
123 'logout' => [
124 'path' => '/logout',
125 'target' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '::logoutAction',
126 'access' => 'public'
127 ],
128
129 // Refresh login of backend
130 'login_refresh' => [
131 'path' => '/login/refresh',
132 'target' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '::refreshAction',
133 ],
134
135 // Check if backend session has timed out
136 'login_timedout' => [
137 'path' => '/login/timedout',
138 'target' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '::isTimedOutAction',
139 'access' => 'public'
140 ],
141
142 // ExtDirect routing
143 'ext_direct_route' => [
144 'path' => '/ext-direct/route',
145 'target' => \TYPO3\CMS\Core\ExtDirect\ExtDirectRouter::class . '::routeAction',
146 'access' => 'public'
147 ],
148
149 // ExtDirect API
150 'ext_direct_api' => [
151 'path' => '/ext-direct/api',
152 'target' => \TYPO3\CMS\Core\ExtDirect\ExtDirectApi::class . '::getAPI'
153 ],
154
155 // Render flash messages
156 'flashmessages_render' => [
157 'path' => '/flashmessages/render',
158 'target' => \TYPO3\CMS\Backend\Template\DocumentTemplate::class . '::renderQueuedFlashMessages'
159 ],
160
161 // Load context menu for
162 'contextmenu' => [
163 'path' => '/context-menu',
164 'target' => Controller\ClickMenuController::class . '::getContextMenuAction'
165 ],
166
167 // Process data handler commands
168 'record_process' => [
169 'path' => '/record/process',
170 'target' => Controller\SimpleDataHandlerController::class . '::processAjaxRequest'
171 ],
172
173 // Process user settings
174 'usersettings_process' => [
175 'path' => '/usersettings/process',
176 'target' => Controller\UserSettingsController::class . '::processAjaxRequest'
177 ],
178
179 // Open the image manipulation wizard
180 'wizard_image_manipulation' => [
181 'path' => '/wizard/image-manipulation',
182 'target' => \TYPO3\CMS\Backend\Form\Wizard\ImageManipulationWizard::class . '::getWizardAction'
183 ],
184
185 // Save a newly added online media
186 'livesearch' => [
187 'path' => '/livesearch',
188 'target' => Controller\LiveSearchController::class . '::liveSearchAction'
189 ],
190
191 // Save a newly added online media
192 'online_media_create' => [
193 'path' => '/online-media/create',
194 'target' => Controller\OnlineMediaController::class . '::createAction'
195 ],
196
197 // Get icon from IconFactory
198 'icons' => [
199 'path' => '/icons',
200 'target' => \TYPO3\CMS\Core\Imaging\IconFactory::class . '::processAjaxRequest'
201 ],
202
203 // Encode typolink parts on demand
204 'link_browser_encodetypolink' => [
205 'path' => '/link-browser/encode-typolink',
206 'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::encodeTypoLink',
207 ],
208
209 // Get languages in page and colPos
210 'languages_page_colpos' => [
211 'path' => '/records/localize/get-languages',
212 'target' => Controller\Page\LocalizationController::class . '::getUsedLanguagesInPageAndColumn'
213 ],
214
215 // Get summary of records to localize
216 'records_localize_summary' => [
217 'path' => '/records/localize/summary',
218 'target' => Controller\Page\LocalizationController::class . '::getRecordLocalizeSummary'
219 ],
220
221 // Localize the records
222 'records_localize' => [
223 'path' => '/records/localize',
224 'target' => Controller\Page\LocalizationController::class . '::localizeRecords'
225 ]
226 ];