Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4064669
CitizenComponentPageFooter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
CitizenComponentPageFooter.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Skins\Citizen\Components
;
use
MessageLocalizer
;
/**
* CitizenComponentPageFooter component
* FIXME: Need unit test
*/
class
CitizenComponentPageFooter
implements
CitizenComponent
{
public
function
__construct
(
private
readonly
MessageLocalizer
$localizer
,
private
readonly
array
$footerData
)
{
}
public
function
getTemplateData
():
array
{
$footerData
=
$this
->
footerData
;
// Add label to footer-info to use in PageFooter
foreach
(
$footerData
[
'array-items'
]
as
&
$item
)
{
$msgKey
=
'citizen-page-info-'
.
$item
[
'name'
];
$item
[
'label'
]
=
$this
->
localizer
->
msg
(
$msgKey
)->
text
();
}
return
$footerData
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 14:15 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b8/d0/fe4baa0ae3b3751d031033215b50
Default Alt Text
CitizenComponentPageFooter.php (695 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment