MediaWiki  1.34.0
HTMLFormFieldLayout.php
Go to the documentation of this file.
1 <?php
2 
3 class HTMLFormFieldLayout extends OOUI\FieldLayout {
4  use HTMLFormElement;
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 }
HTMLFormFieldLayout\__construct
__construct( $fieldWidget, array $config=[])
Definition: HTMLFormFieldLayout.php:6
HTMLFormFieldLayout\getJavaScriptClassName
getJavaScriptClassName()
Definition: HTMLFormFieldLayout.php:13
initializeHTMLFormElement
initializeHTMLFormElement(array $config=[])
Definition: HTMLFormElement.php:15
HTMLFormFieldLayout
Definition: HTMLFormFieldLayout.php:3
HTMLFormElement
trait HTMLFormElement
Allows custom data specific to HTMLFormField to be set for OOUI forms.
Definition: HTMLFormElement.php:10