+ function getInputOOUI( $value ) {
+ $options = array();
+ foreach ( $this->getOptions() as $label => $data ) {
+ $options[] = array(
+ 'data' => $data,
+ 'label' => $this->mOptionsLabelsNotFromMessage ? new OOUI\HtmlSnippet( $label ) : $label,
+ );
+ }
+
+ return new OOUI\RadioSelectInputWidget( array(
+ 'name' => $this->mName,
+ 'value' => $value,
+ 'options' => $options,
+ 'classes' => 'mw-htmlform-flatlist-item',
+ ) + $this->getAttributes( array( 'disabled', 'tabindex' ), array( 'tabindex' => 'tabIndex' ) ) );
+ }
+