Merge conflict
Gerrit cannot merge this change. It needs a rebase onto main.
98377[FEATURE] Provide soft references in AppendLinkHandlerElementsEvent
Commit message
The typolink soft reference parsers still built their matches as arrays, since AppendLinkHandlerElementsEvent exchanges the matches of a field with listeners for custom link handlers as arrays. Listeners can now add the soft reference of a link as SoftReference object with addSoftReference(), getSoftReferences() returns the ones found so far. The array methods keep working, matches added as arrays are kept as they are, since ext:linkvalidator relies on custom substitution types such as "shop" in them. Both typolink parsers create SoftReference objects now. Their substitution carries the new property linkType: the LinkService type of the link, or the identifier of a custom link handler. SoftReferenceParserResult::create() accepts objects and arrays mixed.
Show more Show less
Resolves: #111736 Related: #111730 Releases: main Change-Id: Ib15fbf2c2a668d778a4fa3f379db7c6951f9ccc5
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/77/98377/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/77/98377/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Relation chain 5
- 98380[TASK] Deprecate the array representation of soft references
- 98379[FEATURE] Select linkvalidator linktypes by the link type
- 98378[TASK] Replace soft reference tokens in one place
-
98377 [FEATURE] Provide soft references in AppendLinkHandlerElementsEvent This change
- 98363[FEATURE] Provide soft references as value objects
Issues 2
Files 8
- typo3/sysext/core/Classes/DataHandling/Event/AppendLinkHandlerElementsEvent.php+55 −2
- typo3/sysext/core/Classes/DataHandling/SoftReference/SoftReferenceParserResult.php+20 −16
- typo3/sysext/core/Classes/DataHandling/SoftReference/SoftReferenceSubstitution.php+12 −6
- typo3/sysext/core/Classes/DataHandling/SoftReference/TypolinkSoftReferenceParser.php+26 −56
- typo3/sysext/core/Classes/DataHandling/SoftReference/TypolinkTagSoftReferenceParser.php+20 −60
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-111736-SoftReferenceObjectsInAppendLinkHandlerElementsEvent.rstnew+73 −0
- typo3/sysext/core/Tests/Functional/DataHandling/SoftReference/TypolinkSoftReferenceParserTest.php+75 −0
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SoftReferenceParserResultTest.php+2 −2
Review log 12
-
Benni Mack uploaded patch set 1 12/05/26, 21:50
-
core-ci voted on patch set 1 V +1 12/05/26, 22:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116475