localizer = $localizer; } /** @inheritDoc */ public function getDiff( Content $oldContent = null, Content $newContent = null ) { $this->normalizeContents( $oldContent, $newContent ); $oldModel = $oldContent->getModel(); $newModel = $newContent->getModel(); if ( $oldModel !== $newModel ) { $msg = $this->localizer->msg( 'unsupported-content-diff2', $oldModel, $newModel ); } else { $msg = $this->localizer->msg( 'unsupported-content-diff', $oldModel ); } return Html::rawElement( 'tr', [], Html::rawElement( 'td', [ 'colspan' => 4, 'class' => 'error' ], $msg->parse() ) ); } }