Page MenuHomeWickedGov Phorge

CustomDifferenceEngine.php
No OneTemporary

Size
536 B
Referenced Files
None
Subscribers
None

CustomDifferenceEngine.php

<?php
use MediaWiki\Content\Content;
class CustomDifferenceEngine extends DifferenceEngine {
public function __construct() {
parent::__construct();
}
public function generateContentDiffBody( Content $old, Content $new ): string {
return $old->getText() . '|' . $new->getText();
}
public function showDiffStyle() {
$this->getOutput()->addModules( 'foo' );
}
/** @inheritDoc */
public function getDiffBodyCacheKeyParams() {
$params = parent::getDiffBodyCacheKeyParams();
$params[] = 'foo';
return $params;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 22:36 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
be/b7/7d48f3a3e41215116a5fbb376cb1
Default Alt Text
CustomDifferenceEngine.php (536 B)

Event Timeline