MediaWiki REL1_35
MediaWiki\Content\Hook\GetContentModelsHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 10 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: