Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\ResourceLoader\Hook;
4
5use MediaWiki\ResourceLoader\Context;
6
7/**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ResourceLoaderForeignApiModules" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup ResourceLoaderHooks
13 */
14interface ResourceLoaderForeignApiModulesHook {
15    /**
16     * Add dependencies to the `mediawiki.ForeignApi` module when you wish
17     * to override its behavior. See the JS docs for more information.
18     *
19     * This hook is called from ResourceLoaderForeignApiModule.
20     *
21     * @since 1.35
22     * @param string[] &$dependencies List of modules that mediawiki.ForeignApi should
23     *   depend on
24     * @param Context|null $context
25     * @return void This hook must not abort, it must return no value
26     */
27    public function onResourceLoaderForeignApiModules( &$dependencies, $context ): void;
28}