27 private $differenceEngine;
30 $this->differenceEngine = clone $differenceEngine;
35 ->getContentHandlerFactory()
38 $this->differenceEngine->
setContent( $fakeContent, $fakeContent );
40 $this->differenceEngine->markAsSlotDiffRenderer();
46 return $this->differenceEngine->generateContentDiffBody( $oldContent, $newContent );
52 if ( $output !== $this->differenceEngine->
getOutput() ) {
53 $oldContext = $this->differenceEngine->getContext();
55 $newContext->setOutput( $output );
56 $this->differenceEngine->setContext( $newContext );
58 $this->differenceEngine->showDiffStyle();
60 $this->differenceEngine->setContext( $oldContext );
66 return $this->differenceEngine->getExtraCacheKeys();
72class_alias( DifferenceEngineSlotDiffRenderer::class,
'DifferenceEngineSlotDiffRenderer' );
const CONTENT_MODEL_WIKITEXT
An IContextSource implementation which will inherit context from another source but allow individual ...
This is one of the Core classes and should be read at least once by any new developers.
Content objects represent page content, e.g.