MediaWiki  master
PendingTextInputWidget.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Widget;
4 
6 
10 class PendingTextInputWidget extends TextInputWidget {
11 
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 }
Config $config
Definition: MediaWiki.php:39
Text input widget that displays pending animation.