MediaWiki master
UserInputWidget.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Widget;
4
5use OOUI\TextInputWidget;
6
13class UserInputWidget extends TextInputWidget {
14
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
29 public function getConfig( &$config ) {
30 $config['$overlay'] = true;
31 return parent::getConfig( $config );
32 }
33}