MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onPreferencesGetLegend ( $form, $key, &$legend) | |
Use the hook to override the text used for the <legend> of a preferences section. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PreferencesGetLegend" to register handlers implementing this interface.
Definition at line 14 of file PreferencesGetLegendHook.php.
MediaWiki\Hook\PreferencesGetLegendHook::onPreferencesGetLegend | ( | $form, | |
$key, | |||
& | $legend ) |
Use the hook to override the text used for the <legend> of a preferences section.
HTMLForm | $form | the HTMLForm object. This is a ContextSource as well |
string | $key | the section name |
string | &$legend | the legend text. Defaults to wfMessage( "prefs-$key" )->text() but may be overridden |
Implemented in MediaWiki\HookContainer\HookRunner.