Merge conflict

Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review

98377[FEATURE] Provide soft references in AppendLinkHandlerElementsEvent

Benni Mack CR 0 V 0 Hard +283 −142 updated 12/05/26, 22:01

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

  1. 98380[TASK] Deprecate the array representation of soft references Based on this change Benni Mack → main Hard +205 −77 CR 0 V 0 Merge conflict
  2. 98379[FEATURE] Select linkvalidator linktypes by the link type Based on this change Benni Mack → main Hard +252 −26 CR 0 V 0
  3. 98378[TASK] Replace soft reference tokens in one place Based on this change Benni Mack → main Normal +149 −14 CR 0 V 0
  4. 98377 [FEATURE] Provide soft references in AppendLinkHandlerElementsEvent This change

  5. 98363[FEATURE] Provide soft references as value objects This change is based on it Benni Mack → main Hard +476 −60 CR 0 V 0

Issues 2

Files 8

Review log 12

  1. Benni Mack uploaded patch set 1 12/05/26, 21:50

  2. 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