MediaWiki  master
MediaWiki\Hook\SkinTemplateTabActionHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\SkinTemplateTabActionHook:

Public Member Functions

 onSkinTemplateTabAction ( $sktemplate, $title, $message, $selected, $checkEdit, &$classes, &$query, &$text, &$result)
 Use this hook to override SkinTemplate::tabAction(). More...

Detailed Description

This is a hook handler interface, see docs/

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

since 1.35 Use SkinTemplateNavigation__Universal instead

Definition at line 15 of file SkinTemplateTabActionHook.php.

Member Function Documentation

◆ onSkinTemplateTabAction()

MediaWiki\Hook\SkinTemplateTabActionHook::onSkinTemplateTabAction (   $sktemplate,

Use this hook to override SkinTemplate::tabAction().

You can either create your own array, or alter the parameters for the normal one.

string$messageVisible label of tab
bool$selectedWhether this is a selected tab
bool$checkEditWhether or not the action=edit query should be added if appropriate
string[]&$classesArray of CSS classes to apply
string&$queryQuery string to add to link
string&$textLink text
array&$resultComplete associative array if you want to return true
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: