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