wiki.techinc.nl/includes/page/Hook/IsFileCacheableHook.php

25 lines
565 B
PHP
Raw Normal View History

<?php
namespace MediaWiki\Page\Hook;
use Article;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "IsFileCacheable" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface IsFileCacheableHook {
/**
* Use this hook to override the result of Article::isFileCacheable().
*
* @since 1.35
*
* @param Article $article Article being checked
* @return bool|void True or no return value to override or false to abort
*/
public function onIsFileCacheable( $article );
}