Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| PendingTextInputWidget | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
| 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::__construct( $config ); |
| 21 | |
| 22 | // Initialization |
| 23 | $this->input->addClasses( [ 'mw-widgets-pendingTextInputWidget oo-ui-pendingElement-pending' ] ); |
| 24 | } |
| 25 | } |