Manual:Hooks/GalleryGetModes/cs
GalleryGetModes | |
---|---|
Dostupné od verze 1.22.0 (Gerrit change 67885) Allows extensions to add classes that can render different modes of a gallery. | |
Definice funkce: | public static function onGalleryGetModes( array &$modeArray ) { ... }
|
Registrace háčku: | V extension.json:
{
"Hooks": {
"GalleryGetModes": "MyExtensionHooks::onGalleryGetModes"
}
}
|
Volá se z: | Soubor/y: gallery/ImageGalleryBase.php |
Rozhraní: | GalleryGetModesHook.php |
Další informace o háčcích najdete na stránce Příručka:Háčky .
Chcete-li vědět, jaká rozšíření tento háček používají, podívejte se na stránku Category:GalleryGetModes extensions/cs.
Podrobnosti
Allows an extension to add custom classes to render a gallery with. Add the mode name and the class to the associative array.
&$modeArray
: An associative array mapping mode names to classes that implement that mode. It is expected all registered classes are a subclass of ImageGalleryBase.