Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982974
VectorComponentMenuListItem.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
731 B
Referenced Files
None
Subscribers
None
VectorComponentMenuListItem.php
View Options
<?php
namespace
MediaWiki\Skins\Vector\Components
;
/**
* VectorComponentMenuListItem component
*/
class
VectorComponentMenuListItem
implements
VectorComponent
{
/** @var VectorComponentLink */
private
$link
;
/** @var string */
private
$class
;
/** @var string */
private
$id
;
/**
* @param VectorComponentLink $link
* @param string $class
* @param string $id
*/
public
function
__construct
(
VectorComponentLink
$link
,
string
$class
=
''
,
string
$id
=
''
)
{
$this
->
link
=
$link
;
$this
->
class
=
$class
;
$this
->
id
=
$id
;
}
/**
* @inheritDoc
*/
public
function
getTemplateData
():
array
{
return
$this
->
link
->
getTemplateData
()
+
[
'item-class'
=>
$this
->
class
,
'item-id'
=>
$this
->
id
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:39 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/d8/14aad68531c32fded7157e2b7cc3
Default Alt Text
VectorComponentMenuListItem.php (731 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment