MediaWiki REL1_37
MediaWiki\Hook\ImportSourcesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\ImportSourcesHook:

Public Member Functions

 onImportSources (&$importSources)
 This hook is called when reading from the $wgImportSources configuration variable.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ImportSources" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file ImportSourcesHook.php.

Member Function Documentation

◆ onImportSources()

MediaWiki\Hook\ImportSourcesHook::onImportSources ( $importSources)

This hook is called when reading from the $wgImportSources configuration variable.

This can be used to lazy-load the import sources list.

Since
1.35
Parameters
array&$importSourcesThe value of $wgImportSources. Modify as necessary. See the comment in DefaultSettings.php for the detail of how to structure this array.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner, and MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: