Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7417439
SkinComponentRenderedWith.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SkinComponentRenderedWith.php
View Options
<?php
namespace
MediaWiki\Skin
;
use
MediaWiki\Language\Language
;
use
MessageLocalizer
;
class
SkinComponentRenderedWith
implements
SkinComponent
{
private
Language
$language
;
private
MessageLocalizer
$localizer
;
/**
* @param SkinComponentRegistryContext $skinContext
* @param bool $useParsoid whether Parsoid was used to render this page
*/
public
function
__construct
(
SkinComponentRegistryContext
$skinContext
,
private
bool
$useParsoid
=
false
,
)
{
$this
->
localizer
=
$skinContext
->
getMessageLocalizer
();
$this
->
language
=
$skinContext
->
getLanguage
();
}
/**
* Get the timestamp of the latest revision, formatted in user language
*
* @inheritDoc
*/
public
function
getTemplateData
():
array
{
$localizer
=
$this
->
localizer
;
$language
=
$this
->
language
;
$useParsoid
=
$this
->
useParsoid
;
$msg
=
$useParsoid
?
$localizer
->
msg
(
'renderedwith-parsoid'
)
:
$localizer
->
msg
(
'renderedwith-legacy'
);
return
[
'is-parsoid'
=>
$useParsoid
,
'text'
=>
$msg
->
isDisabled
()
?
''
:
$msg
->
parse
(),
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 03:18 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/38/138c221583b341bd8b4b88f82ccb
Default Alt Text
SkinComponentRenderedWith.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment