MediaWiki REL1_37
MediaWiki\Hook\IsUploadAllowedFromUrlHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\IsUploadAllowedFromUrlHook:

Public Member Functions

 onIsUploadAllowedFromUrl ( $url, &$allowed)
 Use this hook to override the result of UploadFromUrl::isAllowedUrl().
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "IsUploadAllowedFromUrl" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file IsUploadAllowedFromUrlHook.php.

Member Function Documentation

◆ onIsUploadAllowedFromUrl()

MediaWiki\Hook\IsUploadAllowedFromUrlHook::onIsUploadAllowedFromUrl (   $url,
$allowed 
)

Use this hook to override the result of UploadFromUrl::isAllowedUrl().

Since
1.35
Parameters
string$urlURL used to upload from
bool&$allowedWhether uploading is allowed for given URL
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: