mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-21 20:22:39 +00:00
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,
|
||
|
];
|
||
|
}
|
||
|
}
|