aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLTextFieldWithButton.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLTextFieldWithButton.php')
-rw-r--r--includes/htmlform/fields/HTMLTextFieldWithButton.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/htmlform/fields/HTMLTextFieldWithButton.php b/includes/htmlform/fields/HTMLTextFieldWithButton.php
index 6105acb989b3..24fbc9e4ee87 100644
--- a/includes/htmlform/fields/HTMLTextFieldWithButton.php
+++ b/includes/htmlform/fields/HTMLTextFieldWithButton.php
@@ -20,4 +20,9 @@ class HTMLTextFieldWithButton extends HTMLTextField {
public function getInputHTML( $value ) {
return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
}
+
+ protected function getFieldLayoutOOUI( $inputField, $config ) {
+ $buttonWidget = $this->mClassWithButton->getInputOOUI( '' );
+ return new HTMLFormActionFieldLayout( $inputField, $buttonWidget, $config );
+ }
}