Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5963749
CitizenComponentPageFooter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
703 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
MessageLocalizer
$localizer
,
private
array
$footerData
)
{
}
/**
* @inheritDoc
*/
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
Sat, Oct 3, 09:50 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9d/4c/424ad168e1670d6adfd100f180aa
Default Alt Text
CitizenComponentPageFooter.php (703 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment