Debian Codegraph @

includes/parser/Hook/PageRenderingHashHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\User\User;
6
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "PageRenderingHash" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 */
14 interface PageRenderingHashHook {
15 /**
16 * NOTE: Consider using ParserOptionsRegister instead.
17 * Use this hook to alter the parser cache option hash key. A parser extension
18 * which depends on user options should install this hook and append its values to
19 * the key.
20 *
21 * @since 1.35
22 *
23 * @param string &$confstr Reference to a hash key string which can be modified
24 * @param User $user User requesting the page
25 * @param array &$forOptions Array of options the hash is for
26 * @return bool|void True or no return value to continue or false to abort
27 */
28 public function onPageRenderingHash( &$confstr, $user, &$forOptions );
29 }