Review main Ready for review

98379[FEATURE] Select linkvalidator linktypes by the link type

Benni Mack CR 0 V 0 Hard +252 −26 updated 12/05/26, 22:07

Commit message

A custom link handler is validated by a linktype whose identifier
equals the substitution type of the soft reference, such as "shop".
The reference index does not know such types and ignores the link,
and soft reference objects only support records and values.

The link validator now passes the link type of the soft reference
substitution to the linktypes as "linkType", next to the "type".
AbstractLinktype::fetchType() selects a linktype by either of them.
Event listeners for custom link handlers can now add their soft
references as objects with addSoftReference() and are still checked
by their linktype. The documentation uses this way now.

LinktypeInterface keeps its array based signatures, so existing
linktypes keep working.
Show more Show less
Resolves: #111737
Related: #111730
Releases: main
Change-Id: Ida9474f87cdb0837e6e32730c1291756c3a2c95e

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/79/98379/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/79/98379/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 This change

  3. 98378[TASK] Replace soft reference tokens in one place This change is based on it Benni Mack → main Normal +149 −14 CR 0 V 0
  4. 98377[FEATURE] Provide soft references in AppendLinkHandlerElementsEvent This change is based on it Benni Mack → main Hard +283 −142 CR 0 V 0 Merge conflict
  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

Merge conflicts 31

Show 26 more changes Show less

Issues 2

Files 14

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:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116477