2022-02-01 15:10:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MediaWiki\Extension\VisualEditor;
|
|
|
|
|
2024-06-10 20:35:51 +00:00
|
|
|
use MediaWiki\Output\OutputPage;
|
2022-02-01 15:10:33 +00:00
|
|
|
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
|
|
|
|
*/
|
2022-02-14 23:24:46 +00:00
|
|
|
public function onVisualEditorBeforeEditor(
|
2022-02-01 15:10:33 +00:00
|
|
|
OutputPage $output,
|
|
|
|
Skin $skin
|
|
|
|
): bool;
|
|
|
|
|
|
|
|
}
|