| 1 | <?php |
| 2 | namespace MediaWiki\Skins\Vector\Components; |
| 3 | |
| 4 | /** |
| 5 | * VectorComponentPinnableElement component |
| 6 | */ |
| 7 | class VectorComponentPinnableElement implements VectorComponent { |
| 8 | /** @var string */ |
| 9 | private $id; |
| 10 | |
| 11 | /** |
| 12 | * @param string $id |
| 13 | */ |
| 14 | public function __construct( string $id ) { |
| 15 | $this->id = $id; |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @inheritDoc |
| 20 | */ |
| 21 | public function getTemplateData(): array { |
| 22 | return [ |
| 23 | 'id' => $this->id, |
| 24 | ]; |
| 25 | } |
| 26 | } |