aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Hook/ParserTestTablesHook.php
blob: 8433817e919db6f6edf621637d7fb00065e7c747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace MediaWiki\Hook;

/**
 * @stable for implementation
 * @ingroup Hooks
 */
interface ParserTestTablesHook {
	/**
	 * Use this hook to alter the list of tables to duplicate when parser tests are
	 * run. Use when page save hooks require the presence of custom tables to ensure
	 * that tests continue to run properly.
	 *
	 * @since 1.35
	 *
	 * @param string[] &$tables Array of table names
	 * @return bool|void True or no return value to continue or false to abort
	 */
	public function onParserTestTables( &$tables );
}