Manual:Hooks/LocalisationCacheRecacheFallback
Appearance
From mediawiki.org
| LocalisationCacheRecacheFallback | |
|---|---|
| Available from version 1.24.0 (Gerrit change 158146) Called for each language when merging fallback data into the cache. | |
| Define function: | public static function onLocalisationCacheRecacheFallback( $cache, $code, &$alldata ) { ... } |
| Attach hook: | In extension.json:
{ "Hooks":{ "LocalisationCacheRecacheFallback":"MediaWiki\\Extension\\MyExtension\\Hooks::onLocalisationCacheRecacheFallback" } } |
| Called from: | File(s): Language/LocalisationCache.php Function(s): recache |
| Interface: | LocalisationCacheRecacheFallbackHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:LocalisationCacheRecacheFallback extensions.
Details
[edit ]$cache: The LocalisationCache object$code: language code&$alldata: The localisation data from core and extensions. Note that some keys may be omitted if they won't be merged into the final result.