Page MenuHomeWickedGov Phorge

CodeEditorGetPageLanguageHook.php
No OneTemporary

Size
1002 B
Referenced Files
None
Subscribers
None

CodeEditorGetPageLanguageHook.php

<?php
namespace MediaWiki\Extension\CodeEditor\Hooks;
use MediaWiki\Title\Title;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "CodeEditorGetPageLanguage" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface CodeEditorGetPageLanguageHook {
/**
* Allows to set a code language for extensions content models
*
* As of MW 1.45, implementations of this interface should check
* Hooks::tempIsCodeMirrorBetaFeatureEnabled() if the extension
* also has integration with CodeMirror.
*
* @param Title $title The title the language is for
* @param string|null &$lang The language to use
* @param string $model The content model of the title
* @param string $format The content format of the title
* @return bool|void True or no return value to continue or false to abort
*/
public function onCodeEditorGetPageLanguage( Title $title, ?string &$lang, string $model, string $format );
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 23, 07:10 (3 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fb/a2/f58e0bb255311b6a8fd67b2465d9
Default Alt Text
CodeEditorGetPageLanguageHook.php (1002 B)

Event Timeline