MediaWiki  master
ConvertContentHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Content\Hook;
4 
5 use Content;
6 
14 interface ConvertContentHook {
30  public function onConvertContent( $content, $toModel, $lossy, &$result );
31 }
MediaWiki\Content\Hook
Definition: ContentAlterParserOutputHook.php:3
$content
$content
Definition: router.php:76
Content
Base interface for content objects.
Definition: Content.php:35
MediaWiki\Content\Hook\ConvertContentHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ConvertContentHook.php:14
MediaWiki\Content\Hook\ConvertContentHook\onConvertContent
onConvertContent( $content, $toModel, $lossy, &$result)
This hook is called by AbstractContent::convert when a conversion to another content model is request...