Merge "Add tests for WikiMap and WikiReference"
[lhc/web/wiklou.git] / includes / htmlform / HTMLTextField.php
index 9c5b868..157116d 100644 (file)
@@ -115,11 +115,15 @@ class HTMLTextField extends HTMLFormField {
 
                $type = $this->getType( $attribs );
 
-               return new OOUI\TextInputWidget( array(
+               return $this->getInputWidget( array(
                        'id' => $this->mID,
                        'name' => $this->mName,
                        'value' => $value,
                        'type' => $type,
                ) + $attribs );
        }
+
+       protected function getInputWidget( $params ) {
+               return new OOUI\TextInputWidget( $params );
+       }
 }