Page MenuHomeWickedGov Phorge

VectorComponentMenuListItem.php
No OneTemporary

Size
731 B
Referenced Files
None
Subscribers
None

VectorComponentMenuListItem.php

<?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

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)

Event Timeline