MediaWiki REL1_35
MediaWiki\Api\Hook\ApiFormatHighlightHook Interface Reference

Stable to implement. 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.
 

Detailed Description

Stable to implement.

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: