Debian Codegraph @

includes/specials/Hook/ImportSourcesHook.php

raw symbols SCIP
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 "ImportSources" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface ImportSourcesHook {
13 /**
14 * This hook is called when reading from the $wgImportSources configuration variable.
15 *
16 * This can be used to lazy-load the import sources list.
17 *
18 * @since 1.35
19 *
20 * @param array &$importSources The value of $wgImportSources. Modify as necessary.
21 * See \MediaWiki\MainConfigSchema::ImportSources.
22 * @return bool|void True or no return value to continue or false to abort
23 */
24 public function onImportSources( &$importSources );
25 }