MediaWiki REL1_35
MediaWiki\Hook\ApiBeforeMainHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ApiBeforeMainHook:

Public Member Functions

 onApiBeforeMain (&$main)
 This hook is called before calling ApiMain's execute() method in api.php.
 

Detailed Description

Stable to implement.

Definition at line 11 of file ApiBeforeMainHook.php.

Member Function Documentation

◆ onApiBeforeMain()

MediaWiki\Hook\ApiBeforeMainHook::onApiBeforeMain ( $main)

This hook is called before calling ApiMain's execute() method in api.php.

Since
1.35
Parameters
ApiMain&$main
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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