Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427973
HookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
669 B
Referenced Files
None
Subscribers
None
HookRunner.php
View Options
<?php
namespace
MediaWiki\Extension\CodeEditor\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
CodeEditorGetPageLanguageHook
{
private
HookContainer
$hookContainer
;
public
function
__construct
(
HookContainer
$hookContainer
)
{
$this
->
hookContainer
=
$hookContainer
;
}
/**
* @inheritDoc
*/
public
function
onCodeEditorGetPageLanguage
(
Title
$title
,
?
string
&
$lang
,
string
$model
,
string
$format
)
{
return
$this
->
hookContainer
->
run
(
'CodeEditorGetPageLanguage'
,
[
$title
,
&
$lang
,
$model
,
$format
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 15:25 (15 h, 18 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1e/a4/4c9e901e5c49eb20254849781e17
Default Alt Text
HookRunner.php (669 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment