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