showMissing = $config['showMissing']; } if ( isset( $config['excludeDynamicNamespaces'] ) ) { $this->excludeDynamicNamespaces = $config['excludeDynamicNamespaces']; } if ( isset( $config['namespace'] ) ) { $this->namespace = $config['namespace']; } if ( isset( $config['relative'] ) ) { $this->relative = $config['relative']; } if ( isset( $config['allowEditTags'] ) ) { $this->allowEditTags = $config['allowEditTags']; } $this->addClasses( [ 'mw-widgets-titlesMultiselectWidget' ] ); } protected function getJavaScriptClassName() { return 'mw.widgets.TitlesMultiselectWidget'; } public function getConfig( &$config ) { if ( $this->showMissing !== null ) { $config['showMissing'] = $this->showMissing; } if ( $this->excludeDynamicNamespaces !== null ) { $config['excludeDynamicNamespaces'] = $this->excludeDynamicNamespaces; } if ( $this->namespace !== null ) { $config['namespace'] = $this->namespace; } if ( $this->relative !== null ) { $config['relative'] = $this->relative; } if ( $this->allowEditTags !== null ) { $config['allowEditTags'] = $this->allowEditTags; } return parent::getConfig( $config ); } }