Page MenuHomeWickedGov Phorge

ResourceLoaderHooks.php
No OneTemporary

Size
609 B
Referenced Files
None
Subscribers
None

ResourceLoaderHooks.php

<?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

Mime Type
text/x-php
Expires
Sat, Oct 3, 14:31 (38 m, 26 s ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/88/924f1b2f46539d15aa146f893a6a
Default Alt Text
ResourceLoaderHooks.php (609 B)

Event Timeline