mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
77aa8e0cbd
Bug: T317900 Change-Id: Ic91a638a3d90f5533dc624870bbefbff2950767d
34 lines
590 B
PHP
34 lines
590 B
PHP
<?php
|
|
namespace MediaWiki\Skins\Vector\Components;
|
|
|
|
/**
|
|
* VectorComponentMenu component
|
|
*/
|
|
class VectorComponentMenu implements VectorComponent {
|
|
/** @var array */
|
|
private $data;
|
|
|
|
/**
|
|
* @param array $data
|
|
*/
|
|
public function __construct( array $data ) {
|
|
$this->data = $data;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getTemplateData(): array {
|
|
return $this->data + [
|
|
'class' => '',
|
|
'label' => '',
|
|
'html-tooltip' => '',
|
|
'label-class' => '',
|
|
'heading-class' => '',
|
|
'html-before-portal' => '',
|
|
'html-items' => '',
|
|
'html-after-portal' => '',
|
|
];
|
|
}
|
|
}
|