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
HTMLFormActionFieldLayout
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 HTMLFormActionFieldLayout extends \OOUI\ActionFieldLayout {
9    use HTMLFormElement;
10
11    /**
12     * @stable to call
13     * @inheritDoc
14     */
15    public function __construct( $fieldWidget, $buttonWidget = false, array $config = [] ) {
16        parent::__construct( $fieldWidget, $buttonWidget, $config );
17
18        // Traits
19        $this->initializeHTMLFormElement( $config );
20    }
21
22    protected function getJavaScriptClassName() {
23        return 'mw.htmlform.ActionFieldLayout';
24    }
25}
26
27/** @deprecated class alias since 1.42 */
28class_alias( HTMLFormActionFieldLayout::class, 'HTMLFormActionFieldLayout' );