MediaWiki  master
MediaWiki\Api\Hook\ApiFormatHighlightHook Interface Reference

Stable for implementation. More...

Inheritance diagram for MediaWiki\Api\Hook\ApiFormatHighlightHook:

Public Member Functions

 onApiFormatHighlight ( $context, $text, $mime, $format)
 Use this hook to syntax-highlight API pretty-printed output. More...
 

Detailed Description

Stable for implementation.

Definition at line 11 of file ApiFormatHighlightHook.php.

Member Function Documentation

◆ onApiFormatHighlight()

MediaWiki\Api\Hook\ApiFormatHighlightHook::onApiFormatHighlight (   $context,
  $text,
  $mime,
  $format 
)

Use this hook to syntax-highlight API pretty-printed output.

Since
1.35
Parameters
IContextSource$context
string$textText to be highlighted
string$mimeMIME type of $text
string$formatAPI format code for $text
Returns
bool|void True or no return value to continue, or false and add output to $context->getOutput() to highlight

Implemented in MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: