MediaWiki master
MediaWiki\Hook\ParserLogLinterDataHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onParserLogLinterData (string $title, int $revId, array $lints)
 This hook allows Parsoid to log additional linting information during a parse to a database maintained by the [[Extension:Linter]].
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ParserLogLinterData" to register handlers implementing this interface.

Stability: unstable

Definition at line 13 of file ParserLogLinterDataHook.php.

Member Function Documentation

◆ onParserLogLinterData()

MediaWiki\Hook\ParserLogLinterDataHook::onParserLogLinterData ( string $title,
int $revId,
array $lints )

This hook allows Parsoid to log additional linting information during a parse to a database maintained by the [[Extension:Linter]].

See [[Extension:Linter]] for more information.

Parameters
string$titleThe title of the page being parsed
int$revIdThe revision ID of the page being parsed (this hook is typically only invoked if this corresponds to the most recent revision of the given page).
array$lintsThe linter information for the given revision of the page.
Returns
bool Typically returns true, to allow all registered hooks a chance to record these lints.
Stability: unstable
temporary hook
Since
1.39

Implemented in MediaWiki\HookContainer\HookRunner.


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