mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
5f8c5144ca
Only the class name needs the -Hook suffix. Change-Id: I8c600ddb24a9d3a33ed78501639032d98e1e575f
34 lines
613 B
PHP
34 lines
613 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\VisualEditor;
|
|
|
|
use OutputPage;
|
|
use Skin;
|
|
|
|
/**
|
|
* VisualEditorBeforeEditorHook
|
|
*
|
|
* @file
|
|
* @ingroup Extensions
|
|
* @copyright 2011-2021 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license MIT
|
|
*/
|
|
|
|
interface VisualEditorBeforeEditorHook {
|
|
|
|
/**
|
|
* This hook is executed in before deciding if the editor is available on a certain page
|
|
*
|
|
* If the hook returns false, the editor is not available.
|
|
*
|
|
* @param OutputPage $output
|
|
* @param Skin $skin
|
|
* @return bool
|
|
*/
|
|
public function onVisualEditorBeforeEditor(
|
|
OutputPage $output,
|
|
Skin $skin
|
|
): bool;
|
|
|
|
}
|