MediaWiki  master
ApiFormatHighlightHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Api\Hook;
4 
6 
27  public function onApiFormatHighlight( $context, $text, $mime, $format );
28 }
MediaWiki\Api\Hook
Definition: APIAfterExecuteHook.php:3
MediaWiki\Api\Hook\ApiFormatHighlightHook\onApiFormatHighlight
onApiFormatHighlight( $context, $text, $mime, $format)
Use this hook to syntax-highlight API pretty-printed output.
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition: IContextSource.php:58
$mime
$mime
Definition: router.php:60
MediaWiki\$context
IContextSource $context
Definition: MediaWiki.php:40
MediaWiki\Api\Hook\ApiFormatHighlightHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiFormatHighlightHook.php:14