Page MenuHomeWickedGov Phorge

ApiBeforeMainHook.php
No OneTemporary

Size
548 B
Referenced Files
None
Subscribers
None

ApiBeforeMainHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Api\ApiMain;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ApiBeforeMain" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface ApiBeforeMainHook {
/**
* This hook is called before calling ApiMain's execute() method in api.php.
*
* @since 1.35
*
* @param ApiMain &$main
* @return bool|void True or no return value to continue or false to abort
*/
public function onApiBeforeMain( &$main );
}

File Metadata

Mime Type
text/x-php
Expires
Oct 5 2026, 03:07 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
86/b5/524912e62bbbfea0927f2ae03af6
Default Alt Text
ApiBeforeMainHook.php (548 B)

Event Timeline