summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Maps/src/Presentation/GeoJsonNewPageUi.php
blob: 5de1df7113799bc1aaf12cb72208360cf44c0801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Maps\Presentation;

class GeoJsonNewPageUi {

	private $output;

	public function __construct( OutputFacade $output ) {
		$this->output = $output;
	}

	public function addToOutput() {
		$this->output->addModules( 'ext.maps.geojson.new.page' );

		$this->output->addHtml(
			\Html::element(
				'button',
				[
					'id' => 'maps-geojson-new'
				],
				wfMessage( 'maps-geo-json-create-page-button' )->inContentLanguage()->text()
			)
		);
	}

}