Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
HTMLFormFieldLayout
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getJavaScriptClassName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\HTMLForm;
4
5/*
6 * @stable to extend
7 */
8class HTMLFormFieldLayout extends \OOUI\FieldLayout {
9    use \MediaWiki\HTMLForm\HTMLFormElement;
10
11    /**
12     * @stable to call
13     * @inheritDoc
14     */
15    public function __construct( $fieldWidget, array $config = [] ) {
16        parent::__construct( $fieldWidget, $config );
17
18        // Traits
19        $this->initializeHTMLFormElement( $config );
20    }
21
22    protected function getJavaScriptClassName() {
23        return 'mw.htmlform.FieldLayout';
24    }
25}
26
27/** @deprecated class alias since 1.42 */
28class_alias( HTMLFormFieldLayout::class, 'HTMLFormFieldLayout' );