[TASK] Sort building process within PageLinkBuilder / TypoLink 22/58022/2
authorBenni Mack <benni@typo3.org>
Fri, 24 Aug 2018 13:32:53 +0000 (15:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 27 Aug 2018 12:44:46 +0000 (14:44 +0200)
commit172c3bacf16c835a169d24cb44a09a0c10366e8d
treef9d3a6aff61dd3f3b2247e87fc2cd41c14ff7303
parent7c1a21e65d0375c96e33ed5cd75f86817d547b90
[TASK] Sort building process within PageLinkBuilder / TypoLink

This is a pre-cursor for unifying URL generation with slugs / based on sites,
in order to group things that belong together in the mass-method of generating
links in the frontend.

Tasks done:
- $linkText is moved to the very end, as it has no dependency.
- $targetDomain/$currentDomain handling is grouped together.
- absRefPrefix is now always taken from $tsfe->absRefPrefix, as this is the
  resolved path (not set to "auto")
- minor un-needed calls simplified (unneessary checks etc)

Resolves: #85964
Releases: master
Change-Id: Iba84cd98fa614ef7131c03a093c9cfa0a0056575
Reviewed-on: https://review.typo3.org/58022
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php