51 lines
1.3 KiB
ReStructuredText
51 lines
1.3 KiB
ReStructuredText
.. include:: /Includes.rst.txt
|
|
|
|
.. _deprecation-85164:
|
|
|
|
==============================================
|
|
Deprecation: #85164 - Language related methods
|
|
==============================================
|
|
|
|
See :issue:`85164`
|
|
|
|
Description
|
|
===========
|
|
|
|
Various methods related to site language handling have been marked as deprecated:
|
|
|
|
* :php:`TYPO3\CMS\Info\Controller\TranslationStatusController->getSystemLanguages()`
|
|
* :php:`TYPO3\CMS\Backend\View\PageLayoutView->languageFlag()`
|
|
|
|
These properties have been marked as deprecated:
|
|
|
|
* :php:`TYPO3\CMS\Backend\View\PageLayoutView->languageIconTitles`
|
|
* :php:`TYPO3\CMS\Backend\View\PageLayoutView->translateTools`
|
|
|
|
|
|
Impact
|
|
======
|
|
|
|
Calling one of the above methods will trigger a PHP :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 :php:`Site` object that is always
|
|
initialized during core bootstrap. In backend HTTP use cases, the object can be retrieved
|
|
using code like this:
|
|
|
|
.. code-block:: php
|
|
|
|
$currentSite = $request->getAttribute('site');
|
|
$availableLanguages = $currentSite->getAvailableLanguages($this->getBackendUser(), false, $this->id);
|
|
|
|
|
|
.. index:: PHP-API, FullyScanned
|