Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Extension\VisualEditor;
4
5use OutputPage;
6use Skin;
7
8/**
9 * VisualEditorBeforeEditorHook
10 *
11 * @file
12 * @ingroup Extensions
13 * @copyright 2011-2021 VisualEditor Team and others; see AUTHORS.txt
14 * @license MIT
15 */
16
17interface VisualEditorBeforeEditorHook {
18
19    /**
20     * This hook is executed in before deciding if the editor is available on a certain page
21     *
22     * If the hook returns false, the editor is not available.
23     *
24     * @param OutputPage $output
25     * @param Skin $skin
26     * @return bool
27     */
28    public function onVisualEditorBeforeEditor(
29        OutputPage $output,
30        Skin $skin
31    ): bool;
32
33}