Deprecation: #85164 - Language related methods
See forge#85164
Description
Various methods related to site language handling have been marked as deprecated:
TYPO3\
CMS\ Info\ Controller\ Translation Status Controller->get System Languages () TYPO3\
CMS\ Backend\ View\ Page Layout View->language Flag ()
These properties have been marked as deprecated:
TYPO3\
CMS\ Backend\ View\ Page Layout View->language Icon Titles TYPO3\
CMS\ Backend\ View\ Page Layout View->translate Tools
Impact
Calling one of the above methods will trigger a PHP E_
error.
Affected Installations
Instances with extensions calling one of the methods mentioned above.
Migration
Above calls can often be substituted using the Site
object that is always
initialized during core bootstrap. In backend HTTP use cases, the object can be retrieved
using code like this:
$currentSite = $request->getAttribute('site');
$availableLanguages = $currentSite->getAvailableLanguages($this->getBackendUser(), false, $this->id);
Copied!