|
MediaWiki REL1_35
|
Stable to implement. More...

Public Member Functions | |
| onPreferencesGetLegend ( $form, $key, &$legend) | |
| Use the hook to override the text used for the <legend> of a preferences section. | |
Stable to implement.
Definition at line 11 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.