26 $widget->setAttributes( [
'data-mw-modules' => implode(
',', $this->
getOOUIModules() ) ] );
33 return parent::validate( $value, $alldata );
38 $optionsOouiSections = [];
41 foreach ( $options as $label => $section ) {
42 if ( is_array( $section ) ) {
43 $optionsOouiSections[ $label ] = Html::listDropdownOptionsOoui( $section );
44 unset( $options[$label] );
50 $optionsOouiSections = array_merge(
51 [
'' => Html::listDropdownOptionsOoui( $options ) ],
56 return $optionsOouiSections;
61 return [
'mediawiki.widgets.OrderedMultiselectWidget' ];