30 $this->includeAllValue =
$config[
'includeAllValue'] ??
null;
31 $this->exclude =
$config[
'exclude'] ?? [];
34 $this->addClasses( [
'mw-widget-namespaceInputWidget' ] );
38 $namespaceOptionsParams = [
39 'all' =>
$config[
'includeAllValue'] ??
null,
40 'exclude' =>
$config[
'exclude'] ?? null
42 $namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams );
45 foreach ( $namespaceOptions as $id => $name ) {
47 'data' => (string)$id,
56 return 'mw.widgets.NamespaceInputWidget';
63 $config[
'dropdown'][
'$overlay'] =
true;
64 return \OOUI\InputWidget::getConfig(
$config );