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