MediaWiki
REL1_39
ForeignApiModule.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\ResourceLoader
;
22
30
class
ForeignApiModule
extends
FileModule
{
31
public
function
getDependencies
(
Context
$context =
null
) {
32
$dependencies
=
$this->dependencies
;
33
$this->
getHookRunner
()->onResourceLoaderForeignApiModules(
$dependencies
, $context );
34
return
$dependencies
;
35
}
36
}
37
39
class_alias( ForeignApiModule::class,
'ResourceLoaderForeignApiModule'
);
MediaWiki\ResourceLoader\Context
Context object that contains information about the state of a specific ResourceLoader web request.
Definition
Context.php:46
MediaWiki\ResourceLoader\FileModule
Module based on local JavaScript/CSS files.
Definition
FileModule.php:53
MediaWiki\ResourceLoader\FileModule\$dependencies
string[] $dependencies
List of modules this module depends on.
Definition
FileModule.php:114
MediaWiki\ResourceLoader\ForeignApiModule
Module for mediawiki.ForeignApi and mediawiki.ForeignRest that has dynamically generated dependencies...
Definition
ForeignApiModule.php:30
MediaWiki\ResourceLoader\ForeignApiModule\getDependencies
getDependencies(Context $context=null)
Get names of modules this module depends on.
Definition
ForeignApiModule.php:31
MediaWiki\ResourceLoader\Module\getHookRunner
getHookRunner()
Get a HookRunner for running core hooks.
Definition
Module.php:304
MediaWiki\ResourceLoader
Definition
CircularDependencyError.php:21
includes
ResourceLoader
ForeignApiModule.php
Generated on Sun Nov 24 2024 11:23:52 for MediaWiki by
1.10.0