Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Hook; |
4 | |
5 | /** |
6 | * This is a hook handler interface, see docs/Hooks.md. |
7 | * Use the hook name "ParserLogLinterData" to register handlers |
8 | * implementing this interface. |
9 | * |
10 | * @unstable |
11 | * @ingroup Hooks |
12 | */ |
13 | interface ParserLogLinterDataHook { |
14 | /** |
15 | * This hook allows Parsoid to log additional linting information |
16 | * during a parse to a database maintained by the [[Extension:Linter]]. |
17 | * See [[Extension:Linter]] for more information. |
18 | * |
19 | * @param string $title The title of the page being parsed |
20 | * @param int $revId The revision ID of the page being parsed |
21 | * (this hook is typically only invoked if this corresponds to the |
22 | * most recent revision of the given page). |
23 | * @param array $lints The linter information for the given revision |
24 | * of the page. |
25 | * @return bool Typically returns true, to allow all registered hooks a |
26 | * chance to record these lints. |
27 | * |
28 | * @unstable temporary hook |
29 | * @since 1.39 |
30 | */ |
31 | public function onParserLogLinterData( |
32 | string $title, |
33 | int $revId, |
34 | array $lints |
35 | ): bool; |
36 | } |