MediaWiki master
MediaWiki\Page\Hook\IsFileCacheableHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onIsFileCacheable ( $article)
 Use this hook to override the result of Article::isFileCacheable().
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file IsFileCacheableHook.php.

Member Function Documentation

◆ onIsFileCacheable()

MediaWiki\Page\Hook\IsFileCacheableHook::onIsFileCacheable ( $article)

Use this hook to override the result of Article::isFileCacheable().

Since
1.35
Parameters
Article$articleArticle being checked
Returns
bool|void True or no return value to override or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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