MediaWiki REL1_34
HTMLFormFieldLayout.php
Go to the documentation of this file.
1<?php
2
3class HTMLFormFieldLayout extends OOUI\FieldLayout {
5
6 public function __construct( $fieldWidget, array $config = [] ) {
7 parent::__construct( $fieldWidget, $config );
8
9 // Traits
10 $this->initializeHTMLFormElement( $config );
11 }
12
13 protected function getJavaScriptClassName() {
14 return 'mw.htmlform.FieldLayout';
15 }
16}
initializeHTMLFormElement(array $config=[])
trait HTMLFormElement
Allows custom data specific to HTMLFormField to be set for OOUI forms.
__construct( $fieldWidget, array $config=[])