aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/HTMLFormFieldLayout.php
blob: c37628cfaa1829730fb65d2dd21d792e364e33cb (plain) (blame)
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
28
<?php

namespace MediaWiki\HTMLForm;

/*
 * @stable to extend
 */
class HTMLFormFieldLayout extends \OOUI\FieldLayout {
	use \MediaWiki\HTMLForm\HTMLFormElement;

	/**
	 * @stable to call
	 * @inheritDoc
	 */
	public function __construct( $fieldWidget, array $config = [] ) {
		parent::__construct( $fieldWidget, $config );

		// Traits
		$this->initializeHTMLFormElement( $config );
	}

	protected function getJavaScriptClassName() {
		return 'mw.htmlform.FieldLayout';
	}
}

/** @deprecated class alias since 1.42 */
class_alias( HTMLFormFieldLayout::class, 'HTMLFormFieldLayout' );