Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Move linkData() functionality in PageLinkBuilder
The "mother of building all links in Frontend" is moved into PageLinkBuilder. Along with this, building a mountPointMap is moved into the PageLinkBuilder as well, as this is solely needed. Existing methods are deprecated: * TemplateService->linkData * TemplateService->getFromMPmap * TemplateService->initMPmap_create The existing hook is moved into PageLinkBuilder as well, so functionality like RealURL will work the same. Resolves: #84637 Releases: master Change-Id: I513bd721a77ed8959f3c8b4bfc4eaa25dd05eacc Reviewed-on: https://review.typo3.org/56576 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Susanne Moog <susanne.moog@typo3.org> Tested-by: Susanne Moog <susanne.moog@typo3.org>
- Loading branch information
1 parent
d12e0fc
commit d68a620
Showing
6 changed files
with
314 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...precation-84637-TemplateService-linkDataFunctionalityMovedInPageLinkBuilder.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
======================================================================================== | ||
Deprecation: #84637 - TemplateService->linkData() functionality moved in PageLinkBuilder | ||
======================================================================================== | ||
|
||
See :issue:`84637` | ||
|
||
Description | ||
=========== | ||
|
||
In the process of streamlining the link generation to pages in the Frontend, the master method | ||
:php:`TemplateService->linkData` and all functionality regarding resolving of the according Mount Point parameters | ||
have been migrated into the TypoLink PageLinkBuilder class. | ||
|
||
The following methods have been marked as deprecated: | ||
* :php:`TYPO3\CMS\Core\TypoScript\TemplateService->linkData` | ||
* :php:`TYPO3\CMS\Core\TypoScript\TemplateService->getFromMPmap` | ||
* :php:`TYPO3\CMS\Core\TypoScript\TemplateService->initMPmap_create` | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling any of the methods above will trigger a PHP deprecation message. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
Any TYPO3 installations with third-party extensions calling the methods directly, extensions using the | ||
existing hook :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']` | ||
will work the same way. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Access the corresponding new methods within :php:`PageLinkBuilder` instead of the TemplateService-related | ||
methods, or use the existing hook to modify parameters for a URL. | ||
|
||
.. index:: FullyScanned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.