mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
c10ef66e6e
* Introduce Dropdownmenu, PinnableElement and PinnedContainer components Additional changes: * Drops unused has-multiple-menus * Update TableOfContents to use PinnedContainer and PinnableElement Bug: T317900 Change-Id: I0a740f8543831e266f2b1b874b40e44c8241d4cb
27 lines
418 B
PHP
27 lines
418 B
PHP
<?php
|
|
namespace MediaWiki\Skins\Vector\Components;
|
|
|
|
/**
|
|
* VectorComponentPinnableElement component
|
|
*/
|
|
class VectorComponentPinnableElement implements VectorComponent {
|
|
/** @var string */
|
|
private $id;
|
|
|
|
/**
|
|
* @param string $id
|
|
*/
|
|
public function __construct( string $id ) {
|
|
$this->id = $id;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getTemplateData(): array {
|
|
return [
|
|
'id' => $this->id,
|
|
];
|
|
}
|
|
}
|