wiki.techinc.nl/includes/language/Hook/LanguageGetTranslatedLanguageNamesHook.php
Tim Starling 0b7295a5cd Hook interface doc comment followup
Mostly just narrower array types. A handful of other errors fixed.

Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
2020-04-21 09:12:23 +10:00

20 lines
523 B
PHP

<?php
namespace MediaWiki\Languages\Hook;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface LanguageGetTranslatedLanguageNamesHook {
/**
* Use this hook to provide translated language names.
*
* @since 1.35
*
* @param string[] &$names Array of language code => language name
* @param string $code Language of the preferred translations
* @return bool|void True or no return value to continue or false to abort
*/
public function onLanguageGetTranslatedLanguageNames( &$names, $code );
}