MediaWiki  master
HTMLFormFieldLayout.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * @stable to extend
5  */
6 class HTMLFormFieldLayout extends OOUI\FieldLayout {
7  use HTMLFormElement;
8 
13  public function __construct( $fieldWidget, array $config = [] ) {
14  parent::__construct( $fieldWidget, $config );
15 
16  // Traits
17  $this->initializeHTMLFormElement( $config );
18  }
19 
20  protected function getJavaScriptClassName() {
21  return 'mw.htmlform.FieldLayout';
22  }
23 }
HTMLFormFieldLayout\__construct
__construct( $fieldWidget, array $config=[])
Stable to call .
Definition: HTMLFormFieldLayout.php:13
HTMLFormFieldLayout\getJavaScriptClassName
getJavaScriptClassName()
Definition: HTMLFormFieldLayout.php:20
initializeHTMLFormElement
initializeHTMLFormElement(array $config=[])
Definition: HTMLFormElement.php:17
HTMLFormFieldLayout
Definition: HTMLFormFieldLayout.php:6
HTMLFormElement
trait HTMLFormElement
Allows custom data specific to HTMLFormField to be set for OOUI forms.
Definition: HTMLFormElement.php:12