Completed
Push — master ( c256ab...ccc85c )
by Jeroen De
07:01
created

GeoJsonNewPageUi::addToOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Maps\Presentation;
4
5
class GeoJsonNewPageUi {
6
7
	private $output;
8
9
	public function __construct( OutputFacade $output ) {
10
		$this->output = $output;
11
	}
12
13
	public function addToOutput() {
14
		$this->output->addModules( 'ext.maps.geojson.new.page' );
15
16
		$this->output->addHtml(
17
			\Html::element(
18
				'button',
19
				[
20
					'id' => 'maps-geojson-new'
21
				],
22
				wfMessage( 'maps-geo-json-create-page-button' )->inContentLanguage()->text()
23
			)
24
		);
25
	}
26
27
}
28