2019-04-14 02:40:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
2024-02-08 15:30:18 +00:00
|
|
|
namespace MediaWiki\HTMLForm;
|
|
|
|
|
|
2020-07-10 19:23:59 +00:00
|
|
|
/*
|
|
|
|
|
* @stable to extend
|
|
|
|
|
*/
|
2024-02-08 15:30:18 +00:00
|
|
|
class HTMLFormFieldLayout extends \OOUI\FieldLayout {
|
|
|
|
|
use \MediaWiki\HTMLForm\HTMLFormElement;
|
2019-04-14 02:40:03 +00:00
|
|
|
|
2020-07-23 09:41:58 +00:00
|
|
|
/**
|
2020-07-10 19:23:59 +00:00
|
|
|
* @stable to call
|
2020-07-23 09:41:58 +00:00
|
|
|
* @inheritDoc
|
2020-07-10 19:23:59 +00:00
|
|
|
*/
|
2019-04-14 02:40:03 +00:00
|
|
|
public function __construct( $fieldWidget, array $config = [] ) {
|
|
|
|
|
parent::__construct( $fieldWidget, $config );
|
|
|
|
|
|
|
|
|
|
// Traits
|
|
|
|
|
$this->initializeHTMLFormElement( $config );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getJavaScriptClassName() {
|
|
|
|
|
return 'mw.htmlform.FieldLayout';
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-02-08 15:30:18 +00:00
|
|
|
|
2024-03-07 21:56:58 +00:00
|
|
|
/** @deprecated class alias since 1.42 */
|
2024-02-08 15:30:18 +00:00
|
|
|
class_alias( HTMLFormFieldLayout::class, 'HTMLFormFieldLayout' );
|