Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5970504
ResourceLoaderHooks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
ResourceLoaderHooks.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\ConfirmEdit\hCaptcha\Hooks
;
use
MediaWiki\Config\Config
;
use
MediaWiki\ResourceLoader
as
RL
;
class
ResourceLoaderHooks
{
/**
* Passes config variables to ext.confirmEdit.hCaptcha.visualEditor ResourceLoader module.
* @param RL\Context $context
* @param Config $config
* @return array
*/
public
static
function
getHCaptchaResourceLoaderConfig
(
RL\Context
$context
,
Config
$config
)
{
return
[
'hCaptchaSiteKey'
=>
$config
->
get
(
'HCaptchaSiteKey'
),
'hCaptchaScriptURL'
=>
'https://js.hcaptcha.com/1/api.js'
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 14:31 (1 h, 27 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/88/924f1b2f46539d15aa146f893a6a
Default Alt Text
ResourceLoaderHooks.php (609 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment