|
MediaWiki master
|
Produces a warning message about not being able to render a slot diff. More...
Inherits MediaWiki\Diff\SlotDiffRenderer.

Public Member Functions | |
| __construct (MessageLocalizer $localizer) | |
| getDiff (?Content $oldContent=null, ?Content $newContent=null) | |
Get a diff between two content objects.One of them might be null (meaning a slot was created or removed), but both cannot be. $newContent (or if it's null then $oldContent) must have the same content model that was used to obtain this diff renderer.
| |
Public Member Functions inherited from MediaWiki\Diff\SlotDiffRenderer | |
| addModules (OutputPage $output) | |
| Add modules needed for correct styling/behavior of the diff. | |
| getExtraCacheKeys () | |
| Return any extra keys to split the diff cache by. | |
| getTablePrefix (IContextSource $context, Title $newTitle) | |
| Get the content to add above the main diff table. | |
| localizeDiff (string $diff, array $options=[]) | |
| Localize language-independent text returned by getDiff(), making it suitable for display. | |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\Diff\SlotDiffRenderer | |
| normalizeContents (?Content &$oldContent=null, ?Content &$newContent=null, $allowedClasses=null) | |
| Helper method to normalize the input of getDiff(). | |
Produces a warning message about not being able to render a slot diff.
Definition at line 23 of file UnsupportedSlotDiffRenderer.php.
| MediaWiki\Diff\UnsupportedSlotDiffRenderer::__construct | ( | MessageLocalizer | $localizer | ) |
Definition at line 30 of file UnsupportedSlotDiffRenderer.php.
| MediaWiki\Diff\UnsupportedSlotDiffRenderer::getDiff | ( | ?Content | $oldContent = null, |
| ?Content | $newContent = null ) |
Get a diff between two content objects.One of them might be null (meaning a slot was created or removed), but both cannot be. $newContent (or if it's null then $oldContent) must have the same content model that was used to obtain this diff renderer.
Reimplemented from MediaWiki\Diff\SlotDiffRenderer.
Definition at line 35 of file UnsupportedSlotDiffRenderer.php.
References MediaWiki\Diff\SlotDiffRenderer\normalizeContents().