< Manual:Hooks
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": "MyExtensionHooks::onParserLogLinterData"
}
}
|
Called from: | File(s): include/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
$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
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
- This hook was moved from Parsoid to core in Gerrit change 774563.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.