mediawiki-skins-Vector/includes/Components/VectorComponentMenu.php
Jon Robson 77aa8e0cbd Components: MainMenu and Pagetools use VectorComponentMenu
Bug: T317900
Change-Id: Ic91a638a3d90f5533dc624870bbefbff2950767d
2022-12-12 22:17:29 +00:00

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' => '',
];
}
}