MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onContentHandlerDefaultModelFor ( $title, &$model) | |
This hook is called when the default content model is determined for a given title. | |
Stable to implement.
Definition at line 11 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.