Page MenuHomeWickedGov Phorge

SupportedLanguagesHook.php
No OneTemporary

Size
785 B
Referenced Files
None
Subscribers
None

SupportedLanguagesHook.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\Utilities;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "TranslateSupportedLanguages" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SupportedLanguagesHook {
/**
* Allows removing languages from language selectors. For adding $wgExtraLanguage names is recommended.
*
* @param string[] &$list List of languages indexed by language code
* @param string|null $language Language code of the language of which language names are in
* @return bool|void True or no return value to continue or false to abort
*/
public function onTranslateSupportedLanguages( array &$list, ?string $language );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 22:36 (2 h, 1 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e4/29/9e15bf573377619c5a9635b48e49
Default Alt Text
SupportedLanguagesHook.php (785 B)

Event Timeline