6use OOUI\RadioSelectInputWidget;
7use OOUI\TextInputWidget;
39 'radioselectinput' => []
41 $config[
'textinput'] = array_merge( [
44 $config[
'radioselectinput'] = array_merge( [
'options' => [
47 'label' =>
wfMessage(
'minimum-size' )->text()
51 'label' =>
wfMessage(
'maximum-size' )->text()
53 ] ],
$config[
'radioselectinput'] );
60 $this->radioselectinput =
new RadioSelectInputWidget(
$config[
'radioselectinput'] );
61 $this->textinput =
new TextInputWidget(
$config[
'textinput' ] );
62 $this->label =
new LabelWidget( [
'label' =>
wfMessage(
'pagesize' )->text() ] );
65 $this->radioselectinput->setValue(
$config[
'selectMin' ] ?
'min' :
'max' );
67 ->addClasses( [
'mw-widget-sizeFilterWidget' ] )
68 ->appendContent( $this->radioselectinput, $this->textinput, $this->label );
72 return 'mw.widgets.SizeFilterWidget';
76 $config[
'textinput'] = $this->config[
'textinput'];
77 $config[
'radioselectinput'] = $this->config[
'radioselectinput'];
78 $config[
'selectMin'] = $this->config[
'selectMin'];
79 return parent::getConfig(
$config );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.