Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / page / Hook / Article__MissingArticleConditionsHook.php
blob4c52a6aafd5583c145bf2c0f83c3113319377ecb
1 <?php
3 namespace MediaWiki\Page\Hook;
5 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6 /**
7 * This is a hook handler interface, see docs/Hooks.md.
8 * Use the hook name "Article::MissingArticleConditions" to register handlers implementing this interface.
10 * @stable to implement
11 * @ingroup Hooks
13 interface Article__MissingArticleConditionsHook {
14 /**
15 * This hook is called before fetching deletion and move log entries
16 * to display a message of a non-existing page being deleted/moved.
17 * Use this hook to hide unrelated log entries.
19 * @since 1.35
21 * @param array &$conds Array of query conditions (all of which have to be met;
22 * conditions will AND in the final query)
23 * @param string[] $logTypes Array of log types being queried
24 * @return bool|void True or no return value to continue or false to abort
26 public function onArticle__MissingArticleConditions( &$conds, $logTypes );