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
3namespace MediaWiki\Hook;
4
5/**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "WatchlistEditorBeforeFormRender" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12interface WatchlistEditorBeforeFormRenderHook {
13    /**
14     * This hook is called before building the Special:EditWatchlist form.
15     *
16     * It is used to manipulate the list of pages or preload data based on that list.
17     *
18     * @since 1.35
19     *
20     * @param array &$watchlistInfo Array of watchlisted pages in
21     *   [namespaceId => ['title1' => 1, 'title2' => 1]] format
22     * @return bool|void True or no return value to continue or false to abort
23     */
24    public function onWatchlistEditorBeforeFormRender( &$watchlistInfo );
25}