6use OOUI\RadioSelectInputWidget;
7use OOUI\TextInputWidget;
38 'radioselectinput' => []
40 $config[
'textinput'] = array_merge( [
43 $config[
'radioselectinput'] = array_merge( [
'options' => [
46 'label' =>
wfMessage(
'minimum-size' )->text()
50 'label' =>
wfMessage(
'maximum-size' )->text()
52 ] ],
$config[
'radioselectinput'] );
59 $this->radioselectinput =
new RadioSelectInputWidget(
$config[
'radioselectinput'] );
60 $this->textinput =
new TextInputWidget(
$config[
'textinput' ] );
61 $this->label =
new LabelWidget( [
'label' =>
wfMessage(
'pagesize' )->text() ] );
64 $this->radioselectinput->setValue(
$config[
'selectMin' ] ?
'min' :
'max' );
66 ->addClasses( [
'mw-widget-sizeFilterWidget' ] )
67 ->appendContent( $this->radioselectinput, $this->textinput, $this->label );
71 return 'mw.widgets.SizeFilterWidget';
75 $config[
'textinput'] = $this->config[
'textinput'];
76 $config[
'radioselectinput'] = $this->config[
'radioselectinput'];
77 $config[
'selectMin'] = $this->config[
'selectMin'];
78 return parent::getConfig(
$config );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.