[FEATURE] Use LinkResult to generated Typolinks in Frontend
This change introduces a new immutable object "LinkResult" along with an interface, containing the base result of a generated link by TypoLink. This object contains all information needed to put together a <a> tag or return a pure URL. For the time being this new class is used to build links from the typolink link builders, and in addition should be able to be returned fully by typolink in the future. In addition, this object helps to build links needed for e.g. JSON responses to contain all information of the link to be serialized. Resolves: #94889 Releases: master Change-Id: Ic9383a1a0f0ec93ba3aa352235003268e00a2f10 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70590 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Feature-94889-AddResultOptionToTypolinkReturnLastParameter.rst 32 additions, 0 deletions...re-94889-AddResultOptionToTypolinkReturnLastParameter.rst
- typo3/sysext/core/Documentation/Changelog/master/Important-94889-LinkBuilderbuildNowReturnsArrayLinkResultInterface.rst 27 additions, 0 deletions...89-LinkBuilderbuildNowReturnsArrayLinkResultInterface.rst
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 69 additions, 30 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php 2 additions, 2 deletions...ext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php 2 additions, 1 deletion...t/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/EmailLinkBuilder.php 7 additions, 2 deletionstypo3/sysext/frontend/Classes/Typolink/EmailLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/ExternalUrlLinkBuilder.php 10 additions, 6 deletions...sext/frontend/Classes/Typolink/ExternalUrlLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/FileOrFolderLinkBuilder.php 4 additions, 6 deletions...ext/frontend/Classes/Typolink/FileOrFolderLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/LegacyLinkBuilder.php 2 additions, 2 deletionstypo3/sysext/frontend/Classes/Typolink/LegacyLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/LinkResult.php 275 additions, 0 deletionstypo3/sysext/frontend/Classes/Typolink/LinkResult.php
- typo3/sysext/frontend/Classes/Typolink/LinkResultInterface.php 44 additions, 0 deletions.../sysext/frontend/Classes/Typolink/LinkResultInterface.php
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php 7 additions, 2 deletionstypo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/TelephoneLinkBuilder.php 2 additions, 2 deletions...sysext/frontend/Classes/Typolink/TelephoneLinkBuilder.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 183 additions, 9 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/redirects/Classes/Service/RedirectService.php 9 additions, 2 deletionstypo3/sysext/redirects/Classes/Service/RedirectService.php
Please register or sign in to comment