These methods need to move to new corresponding methods in ContentHandler. [[ https://gerrit.wikimedia.org/r/c/mediawiki/core/+/705780 | Here's a patch ]] that does the first part of the work for Content::preSaveTransform.
The signature of the ContentHandler method should be:
- ContentHandler::preSaveTransform( Content, PageReference, UserIdentity, ParserOptions )
The process:
[x] Do the same as in the referenced patch for all the methods.
[ ] In [[https://codesearch.wmcloud.org/search/?q=public%20function%20preSaveTransform%5C(%20Title&i=nope&files=&excludeFiles=&repos=|all extensions where Content overriding classes override the method]] - override the ContentHandler method instead
[x] JsonContent
[x] WikiLambda
[ ] CollaborationKit
[ ] ProofreadPage
[x] MediaUploader
[ ] TEI
[ ] SemanticMediaWiki -> [[ https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/5037 | Issue ]], [[ https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/5038 | PR ]]
[ ] Replace all callers. Use ContentTransformer to obtain a ContentHandler::preSaveTransform, not the Content::getContentHandler method
[ ] Once all callers and overrides in extensions is done, do some hard deprecations.