MediaWiki REL1_35
UserInputWidget.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Widget;
4
11class UserInputWidget extends \OOUI\TextInputWidget {
12
16 public function __construct( array $config = [] ) {
17 parent::__construct( $config );
18
19 // Initialization
20 $this->addClasses( [ 'mw-widget-userInputWidget' ] );
21 }
22
23 protected function getJavaScriptClassName() {
24 return 'mw.widgets.UserInputWidget';
25 }
26
27 public function getConfig( &$config ) {
28 $config['$overlay'] = true;
29 return parent::getConfig( $config );
30 }
31}