diff options
author | Bartosz Dziewoński <matma.rex@gmail.com> | 2022-06-17 17:59:21 +0200 |
---|---|---|
committer | Bartosz Dziewoński <matma.rex@gmail.com> | 2022-06-17 21:47:59 +0200 |
commit | 8f7cd07af602b088f5d53f981f6ff910342b774c (patch) | |
tree | 268f899f10b00d3cb6388cb33c6e0f57c41a7192 /includes/htmlform/fields/HTMLTextFieldWithButton.php | |
parent | 5bdebfc7717531fbd4fae54f4def33cb2efd73b7 (diff) | |
download | mediawikicore-8f7cd07af602b088f5d53f981f6ff910342b774c.tar.gz mediawikicore-8f7cd07af602b088f5d53f981f6ff910342b774c.zip |
HTMLFormField: Fix Phan suppression about mClassWithButton
Change-Id: Ie20fa54de1fcc69913b3881d2efe9192be5b90cc
Diffstat (limited to 'includes/htmlform/fields/HTMLTextFieldWithButton.php')
-rw-r--r-- | includes/htmlform/fields/HTMLTextFieldWithButton.php | 5 |
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 ); + } } |