Deprecation: #85113 - Legacy Backend Module Routing methods
See forge#85113
Description
In TYPO3 v9, Backend routing was unified to be handled via the "route" query string parameter. Backend modules are now automatically registered to be a backend route.
The following methods are thus deprecated in favor of using the method above.
BackendUtility:: get Module Url () UriBuilder->build Uri From Module ()
Impact
Calling one of the deprecated methods above will trigger a PHP
E_ error.
Affected Installations
Any TYPO3 installation with a custom backend-related extension using one of the methods directly in a PHP context.
Migration
Use
Uri instead.
For example:
BackendUtility::getModuleUrl('record_edit', $uriParameters);
Copied!
becomes:
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
$uriBuilder->buildUriFromRoute('record_edit', $uriParameters);
Copied!