Merge "Chinese Conversion Table Update 2017-6"
[lhc/web/wiklou.git] / includes / widget / UserInputWidget.php
1 <?php
2 /**
3 * MediaWiki Widgets – UserInputWidget class.
4 *
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;
9
10 /**
11 * User input widget.
12 */
13 class UserInputWidget extends \OOUI\TextInputWidget {
14
15 /**
16 * @param array $config Configuration options
17 */
18 public function __construct( array $config = [] ) {
19 parent::__construct( $config );
20
21 // Initialization
22 $this->addClasses( [ 'mw-widget-userInputWidget' ] );
23 }
24
25 protected function getJavaScriptClassName() {
26 return 'mw.widgets.UserInputWidget';
27 }
28 }