Merge "phpunit: Call 'teardownTestDB' from shutdown instead of destruct."
[lhc/web/wiklou.git] / includes / widget / PendingTextInputWidget.php
1 <?php
2
3 namespace MediaWiki\Widget;
4
5 use OOUI\TextInputWidget;
6
7 /**
8 * Text input widget that displays pending animation.
9 */
10 class PendingTextInputWidget extends TextInputWidget {
11
12 /**
13 * @param array $config Configuration options
14 */
15 public function __construct( array $config = [] ) {
16 $config = array_merge( [
17 'disabled' => true,
18 ], $config );
19
20 // Parent constructor
21 parent::__construct( $config );
22
23 // Initialization
24 $this->input->addClasses( [ 'mw-widgets-pendingTextInputWidget oo-ui-pendingElement-pending' ] );
25 }
26 }