Actions
Bug #69537
closedBackendUtility::getAjaxUrl() should not be internal
Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
Start date:
2015-09-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
Method \TYPO3\CMS\Backend\Utility\BackendUtility::getAjaxUrl()
was marked as internal in #57096.
However there are cases when getting the URL for an AJAX call is needed also on the PHP side and not just on the JavaScript side. An example of this is when adding an item to the flush cache menu, where one must pass a URL in the "href" property of the cache actions array.
This can be seen used in the "flush_language_cache" extension, which adds a menu time to clear only the "l10n" cache. See: https://github.com/cobwebch/flush_language_cache/blob/master/Classes/Toolbar/ToolbarItem.php
Actions