Manual:Hooks/ParserLogLinterData
Appearance
| ParserLogLinterData | |
|---|---|
| Available from version 1.39.0 (Gerrit change 774563) Report lints from Parsoid to the Linter extension | |
| Define function: | public static function onParserLogLinterData( string $title, int $revId, array $lints ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ParserLogLinterData": "MediaWiki\\Extension\\MyExtension\\Hooks::onParserLogLinterData"
}
}
|
| Called from: | File(s): Parser/Parsoid/Config/DataAccess.php Function(s): logLinterData |
| Interface: | ParserLogLinterDataHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserLogLinterData extensions.
Parameters
[edit]$title: string representing a page title$revId: int representing the revision ID of the page being parsed$lints: array of linting data corresponding to the given revision of the page
Use cases
[edit]Currently, Linter uses this extension. The Linter will record the given lint information for the page. If the Linter extension is not installed, then the lints are discarded.
Notes
[edit]- This hook was moved from Parsoid to core in Gerrit change 774563.