MediaWiki REL1_35
MediaWiki\Content\Hook\ContentHandlerForModelIDHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Content\Hook\ContentHandlerForModelIDHook:

Public Member Functions

 onContentHandlerForModelID ( $modeName, &$handler)
 This hook is called when a ContentHandler is requested for a given content model name, but no entry for that model exists in $wgContentHandlers.
 

Detailed Description

Stable to implement.

Definition at line 11 of file ContentHandlerForModelIDHook.php.

Member Function Documentation

◆ onContentHandlerForModelID()

MediaWiki\Content\Hook\ContentHandlerForModelIDHook::onContentHandlerForModelID (   $modeName,
$handler 
)

This hook is called when a ContentHandler is requested for a given content model name, but no entry for that model exists in $wgContentHandlers.

Note: if your extension implements additional models via this hook, please use GetContentModels hook to make them known to core.

Since
1.35
Parameters
string$modeNameRequested content model name
ContentHandler&$handlerSet this to a ContentHandler object, if desired
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: