[TASK] Deprecate AbstractFunctionModule->incLocalLang()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Deprecation-80511-AbstractFunctionModule-incLocalLangAndThisPath.rst
1 .. include:: ../../Includes.txt
2
3 ========================================================================
4 Deprecation: #80511 - AbstractFunctionModule->incLocalLang and $thisPath
5 ========================================================================
6
7 See :issue:`80511`
8
9 Description
10 ===========
11
12 The method php:`AbstractFunctionModule->incLocalLang()` and the public property
13 php:`AbstractFunctionModule->thisPath` have been marked as deprecated.
14
15
16 Impact
17 ======
18
19 Calling method above will trigger a deprecation log entry.
20
21
22 Affected Installations
23 ======================
24
25 Any extension extending the AbstractFunctionModule and calling the mentioned method.
26
27
28 Migration
29 =========
30
31 The functionality of loading a locallang file is now taken care of by php:`LanguageService::includeLLFile()` and takes care of everything automatically.
32
33 If any specific calls to the method is made, it should be replaced by the LanguageService equivalent.
34
35 The property php:`$thisPath` contains the path to the class, which can be accessed via Reflection,
36 as it is done currently as well, should be implemented in the custom extension itself that needs this
37 information.
38
39 .. index:: Backend, PHP-API