|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ContentHandlerForModelID" to register handlers implementing this interface.
Definition at line 14 of file ContentHandlerForModelIDHook.php.
| 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.
| string | $modeName | Requested content model name |
| ContentHandler | &$handler | Set this to a ContentHandler object, if desired |
Implemented in MediaWiki\HookContainer\HookRunner.