Page MenuHomeWickedGov Phorge

PreferencesGetLegendHook.php
No OneTemporary

Size
809 B
Referenced Files
None
Subscribers
None

PreferencesGetLegendHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\HTMLForm\HTMLForm;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PreferencesGetLegend" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface PreferencesGetLegendHook {
/**
* Use the hook to override the text used for the <legend> of a preferences section.
*
* @since 1.35
*
* @param HTMLForm $form the HTMLForm object. This is a ContextSource as well
* @param string $key the section name
* @param string &$legend the legend text. Defaults to wfMessage( "prefs-$key" )->text() but may
* be overridden
* @return bool|void True or no return value to continue or false to abort
*/
public function onPreferencesGetLegend( $form, $key, &$legend );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 05:56 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e7/86/df5706ce1746ebafbd9aa26db264
Default Alt Text
PreferencesGetLegendHook.php (809 B)

Event Timeline