Issue Bug Closed

#69537BackendUtility::getAjaxUrl() should not be internal

Francois Suter 09/04/15, 16:49 updated 10/02/18, 11:34

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

Reviews 2