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\TranslationStatusController->getSystemLanguages()
  • \TYPO3\CMS\Backend\View\PageLayoutView->languageFlag()

These properties have been marked as deprecated:

  • \TYPO3\CMS\Backend\View\PageLayoutView->languageIconTitles
  • \TYPO3\CMS\Backend\View\PageLayoutView->translateTools

Impact 

Calling one of the above methods will trigger a PHP E_USER_DEPRECATED 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!