MediaWiki
master
ApiFormatHighlightHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Api\Hook
;
4
5
use
MediaWiki\Context\IContextSource
;
6
14
interface
ApiFormatHighlightHook
{
27
public
function
onApiFormatHighlight
( $context, $text, $mime, $format );
28
}
MediaWiki\Api\Hook\ApiFormatHighlightHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ApiFormatHighlightHook.php:14
MediaWiki\Api\Hook\ApiFormatHighlightHook\onApiFormatHighlight
onApiFormatHighlight( $context, $text, $mime, $format)
Use this hook to syntax-highlight API pretty-printed output.
MediaWiki\Context\IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:71
MediaWiki\Api\Hook
Definition
APIAfterExecuteHook.php:3
includes
api
Hook
ApiFormatHighlightHook.php
Generated on Sun Apr 27 2025 17:23:44 for MediaWiki by
1.10.0