MediaWiki REL1_37
MediaWiki\Content\Hook\GetContentModelsHook Interface Reference

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

Inheritance diagram for MediaWiki\Content\Hook\GetContentModelsHook:

Public Member Functions

 onGetContentModels (&$models)
 Use this hook to add content models to the list of available models.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "GetContentModels" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file GetContentModelsHook.php.

Member Function Documentation

◆ onGetContentModels()

MediaWiki\Content\Hook\GetContentModelsHook::onGetContentModels ( $models)

Use this hook to add content models to the list of available models.

Since
1.35
Parameters
string[]&$modelsArray containing current model list as strings. Extensions should add to this list.
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: