'namespace', 'nameInvert' => 'invert', 'nameAssociated' => 'associated', // Choose first available: either main namespace or the "all namespaces" option 'valueNamespace' => null, 'valueInvert' => false, 'valueAssociated' => false, ), $config ); // Parent constructor parent::__construct( $config ); // Properties $this->allValue = isset( $config['includeAllValue'] ) ? $config['includeAllValue'] : null; $this->namespace = new \OOUI\DropdownInputWidget( array( 'name' => $config['nameNamespace'], 'value' => $config['valueNamespace'], 'options' => $this->getNamespaceDropdownOptions( $config ), ) ); if ( $config['nameAssociated'] !== null ) { // FIXME Should use a LabelWidget? But they don't work like HTML