mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-25 08:05:51 +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,
|
||
|
];
|
||
|
}
|
||
|
}
|