Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1425946
CodeMirrorGetModeHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
745 B
Referenced Files
None
Subscribers
None
CodeMirrorGetModeHook.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\CodeMirror\Hooks
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "CodeMirrorGetMode" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
CodeMirrorGetModeHook
{
/**
* Allows to set a code language for extensions content models
*
* @param Title $title The title the language is for
* @param string|null &$mode The CodeMirror mode to use
* @param string $model The content model of the title
* @return bool True to continue or false to abort
*/
public
function
onCodeMirrorGetMode
(
Title
$title
,
?
string
&
$mode
,
string
$model
):
bool
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 12:17 (21 h, 55 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7a/5e/cf407130130d78aba84deb020c76
Default Alt Text
CodeMirrorGetModeHook.php (745 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment