< Manual:Hooks
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": "MyExtensionHooks::onLocalisationCacheRecacheFallback"
}
}
|
Called from: | File(s): cache/localisation/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
$cache
: The LocalisationCache object$code
: language code&$alldata
: The localisation data from core and extensions. Note some keys may be omitted if they won't be merged into the final result.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.