MediaWiki REL1_35
MediaWiki\Hook\ImportSourcesHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 9 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: