MediaWiki REL1_35
MediaWiki\Hook\IsUploadAllowedFromUrlHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 9 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: