aboutsummaryrefslogtreecommitdiffstats
path: root/includes/HookContainer
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@cscott.net>2022-03-28 17:04:49 -0400
committerC. Scott Ananian <cscott@cscott.net>2022-03-28 17:25:34 -0400
commit3cd693aed67a8e7f5a729a2bfdd474016f4f79c0 (patch)
tree54739105fedc91aa3dd3a373de9ef679af308b4a /includes/HookContainer
parent3a8f5b748fafd9550dc991a02e13e4517cc723f2 (diff)
downloadmediawikicore-3cd693aed67a8e7f5a729a2bfdd474016f4f79c0.tar.gz
mediawikicore-3cd693aed67a8e7f5a729a2bfdd474016f4f79c0.zip
Create ParserLogLinterData hook
This hook was formerly defined by Extension:Linter and invoked by Parsoid, but as this part of Parsoid is moving into core the hook should now be defined by core as well. Bug: T304740 Change-Id: Iffd073e510202e5766632cc01d3585815289b7b4
Diffstat (limited to 'includes/HookContainer')
-rw-r--r--includes/HookContainer/HookRunner.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/HookContainer/HookRunner.php b/includes/HookContainer/HookRunner.php
index 5a540a633bcf..ad7d70557908 100644
--- a/includes/HookContainer/HookRunner.php
+++ b/includes/HookContainer/HookRunner.php
@@ -288,6 +288,7 @@ class HookRunner implements
\MediaWiki\Hook\ParserGetVariableValueVarCacheHook,
\MediaWiki\Hook\ParserLimitReportFormatHook,
\MediaWiki\Hook\ParserLimitReportPrepareHook,
+ \MediaWiki\Hook\ParserLogLinterDataHook,
\MediaWiki\Hook\ParserMakeImageParamsHook,
\MediaWiki\Hook\ParserModifyImageHTML,
\MediaWiki\Hook\ParserOptionsRegisterHook,
@@ -2912,6 +2913,13 @@ class HookRunner implements
);
}
+ public function onParserLogLinterData( string $title, int $revId, array $lints ): bool {
+ return $this->container->run(
+ 'ParserLogLinterData',
+ [ $title, $revId, $lints ]
+ );
+ }
+
public function onParserMakeImageParams( $title, $file, &$params, $parser ) {
return $this->container->run(
'ParserMakeImageParams',