Jayprakash12345
See
$formDescriptor['namespaceselectwithbutton'] = array(
'type' => 'namespaceselectwithbutton',
'label-message' => 'longpage-submit',
'all' => '0',
);
$htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
I have another variable array,
$excludenamespace= array_filter( MWNamespace::getValidNamespaces(), 'MWNamespace::isTalk' );
So How I can pass $excludenamespace in namespaceselectwithbutton so that it will excluded some namespace.