MediaWiki  master
MediaWiki\Hook\GalleryGetModesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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. More...
 

Detailed Description

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

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

Stable to implement

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