Fix ApiBase::getErrorFromStatus() and ApiMessages
[mediawiki.git] / includes / widget / UserInputWidget.php
blob86c2bc3a5b9628e0398acee16be985d68d70d6a0
1 <?php
2 /**
3 * MediaWiki Widgets – UserInputWidget class.
5 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
6 * @license The MIT License (MIT); see LICENSE.txt
7 */
8 namespace MediaWiki\Widget;
10 /**
11 * User input widget.
13 class UserInputWidget extends \OOUI\TextInputWidget {
15 /**
16 * @param array $config Configuration options
18 public function __construct( array $config = [] ) {
19 // Parent constructor
20 parent::__construct( array_merge( [ 'infusable' => true ], $config ) );
22 // Initialization
23 $this->addClasses( [ 'mw-widget-userInputWidget' ] );
26 protected function getJavaScriptClassName() {
27 return 'mw.widgets.UserInputWidget';