MediaWiki REL1_35
MediaWiki\Hook\GalleryGetModesHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\GalleryGetModesHook:

Public Member Functions

 onGalleryGetModes (&$modeArray)
 Use this hook to get a list of classes that can render different modes of a gallery.
 

Detailed Description

Stable to implement.

Definition at line 9 of file GalleryGetModesHook.php.

Member Function Documentation

◆ onGalleryGetModes()

MediaWiki\Hook\GalleryGetModesHook::onGalleryGetModes ( $modeArray)

Use this hook to get a list of classes that can render different modes of a gallery.

Since
1.35
Parameters
array&$modeArrayAssociative array mapping mode names to classes that implement that mode. It is expected that all registered classes are a subclass of ImageGalleryBase.
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: