Page MenuHomePhabricator

Move Content::prepareSave method that don't belong in Content to ContentHandler
Open, Needs TriagePublic

Description

We moving Content methods ::prepareSave to ContentHandler on core Patch

So we also need to do it with TeiContent content that extend it in TEI extension.
The idea is to override method validationForRevision in TeiContentHandler and move implementation of TeiContent::prepareSave there.

Replace all callers of TeiContent::prepareSave to TeiContentHandler::validateForRevision.

Event Timeline

roman-stolar updated the task description. (Show Details)
roman-stolar updated the task description. (Show Details)
Aklapper renamed this task from Move Content::prepareSave method that don't belong in Content to ContentHandler in TEI extension. to Move Content::prepareSave method that don't belong in Content to ContentHandler.Oct 9 2023, 1:17 PM