wiki.techinc.nl/includes/parser/Hook/ParserLimitReportFormatHook.php
apaskulin c44488f725 docs: Hook interface doc comment review
Edited doc comments for hook interfaces to improve
consistency and add type hints.

Bug: T246855
Change-Id: I38fa802463cd6f39bf5946dbbeb1b3ebaea604b2
2020-04-21 09:10:08 +10:00

29 lines
981 B
PHP

<?php
namespace MediaWiki\Hook;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface ParserLimitReportFormatHook {
/**
* This hook is called for each row in the parser limit report that
* needs formatting. If nothing handles this hook, the default is to use "$key" to
* get the label, and "$key-value" or "$key-value-text"/"$key-value-html" to
* format the value.
*
* @since 1.35
*
* @param string $key Key for the limit report item
* @param string &$value Value of the limit report item
* @param string &$report String onto which to append the data
* @param string $isHTML If true, $report is an HTML table with two columns; if false, it's
* text intended for display in a monospaced font
* @param bool $localize If false, $report should be output in English
* @return bool|void True or no return value to continue or false to abort
*/
public function onParserLimitReportFormat( $key, &$value, &$report, $isHTML,
$localize
);
}