|
MediaWiki REL1_35
|

Public Member Functions | |
| onSkinTemplateTabAction ( $sktemplate, $title, $message, $selected, $checkEdit, &$classes, &$query, &$text, &$result) | |
| Use this hook to override SkinTemplate::tabAction(). | |
Definition at line 12 of file SkinTemplateTabActionHook.php.
| MediaWiki\Hook\SkinTemplateTabActionHook::onSkinTemplateTabAction | ( | $sktemplate, | |
| $title, | |||
| $message, | |||
| $selected, | |||
| $checkEdit, | |||
| & | $classes, | ||
| & | $query, | ||
| & | $text, | ||
| & | $result | ||
| ) |
Use this hook to override SkinTemplate::tabAction().
You can either create your own array, or alter the parameters for the normal one.
| SkinTemplate | $sktemplate | |
| Title | $title | |
| string | $message | Visible label of tab |
| bool | $selected | Whether this is a selected tab |
| bool | $checkEdit | Whether or not the action=edit query should be added if appropriate |
| string[] | &$classes | Array of CSS classes to apply |
| string | &$query | Query string to add to link |
| string | &$text | Link text |
| array | &$result | Complete associative array if you want to return true |
Implemented in MediaWiki\HookContainer\HookRunner.