mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-03 03:37:24 +00:00
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' => '',
|
||
|
];
|
||
|
}
|
||
|
}
|