Debian Codegraph @

includes/language/Hook/LocalisationCacheRecacheFallbackHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "LocalisationCacheRecacheFallback" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface LocalisationCacheRecacheFallbackHook {
13 /**
14 * Called for each language when merging
15 * fallback data into the cache.
16 *
17 * @since 1.35
18 *
19 * @param ?mixed $cache The LocalisationCache object
20 * @param ?mixed $code language code
21 * @param ?mixed &$alldata The localisation data from core and extensions. Note some keys may
22 * be omitted if they won't be merged into the final result.
23 * @return bool|void True or no return value to continue or false to abort
24 */
25 public function onLocalisationCacheRecacheFallback( $cache, $code, &$alldata );
26 }