2019-04-14 02:40:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
2020-07-10 19:23:59 +00:00
|
|
|
/*
|
|
|
|
|
* @stable to extend
|
|
|
|
|
*/
|
2019-04-14 02:40:03 +00:00
|
|
|
class HTMLFormFieldLayout extends OOUI\FieldLayout {
|
|
|
|
|
use HTMLFormElement;
|
|
|
|
|
|
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';
|
|
|
|
|
}
|
|
|
|
|
}
|