MediaWiki  master
MediaWiki\Hook\ApiBeforeMainHook Interface Reference

Stable for implementation. 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. More...
 

Detailed Description

Stable for implementation.

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: