Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6207190
HookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
HookRunner.php
View Options
<?php
namespace
MediaWiki\Extension\CodeMirror\Hooks
;
use
MediaWiki\HookContainer\HookContainer
;
use
MediaWiki\Title\Title
;
/**
* This is a hook runner class, see docs/Hooks.md in core.
* @internal
*/
class
HookRunner
implements
CodeMirrorGetModeHook
{
private
HookContainer
$hookContainer
;
public
function
__construct
(
HookContainer
$hookContainer
)
{
$this
->
hookContainer
=
$hookContainer
;
}
/**
* @inheritDoc
*/
public
function
onCodeMirrorGetMode
(
Title
$title
,
?
string
&
$mode
,
string
$model
)
{
return
$this
->
hookContainer
->
run
(
'CodeMirrorGetMode'
,
[
$title
,
&
$mode
,
$model
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 10 2026, 07:47 (7 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2f/4f/df62e9ada3b9ac0dce0ff0da058f
Default Alt Text
HookRunner.php (611 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment