MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onContentHandlerDefaultModelFor ( $title, &$model) | |
This hook is called when the default content model is determined for a given title. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ContentHandlerDefaultModelFor" to register handlers implementing this interface.
Definition at line 14 of file ContentHandlerDefaultModelForHook.php.
MediaWiki\Revision\Hook\ContentHandlerDefaultModelForHook::onContentHandlerDefaultModelFor | ( | $title, | |
& | $model ) |
This hook is called when the default content model is determined for a given title.
Use this hook to assign a different model for that title.
Title | $title | Title in question |
string | &$model | Model name. Use with CONTENT_MODEL_XXX constants. |
Implemented in MediaWiki\HookContainer\HookRunner.