30 parent::__construct( $config );
33 $this->includeAllValue = $config[
'includeAllValue'] ??
null;
34 $this->userLang = $config[
'userLang'] ??
false;
35 $this->exclude = $config[
'exclude'] ?? [];
38 $this->addClasses( [
'mw-widget-namespaceInputWidget' ] );
42 $namespaceOptionsParams = [
43 'all' => $config[
'includeAllValue'] ??
null,
44 'in-user-lang' => $config[
'userLang'] ??
false,
45 'exclude' => $config[
'exclude'] ?? null
50 foreach ( $namespaceOptions as $id => $name ) {
52 'data' => (string)$id,
61 return 'mw.widgets.NamespaceInputWidget';
69 $config[
'dropdown'][
'$overlay'] =
true;
70 return \OOUI\InputWidget::getConfig( $config );