mixin( new LabelElement( $this, array_merge( $config, array( 'labelElement' => $this ) ) ) ); // Properties $this->input = isset( $config['input'] ) ? $config['input'] : null; // Initialization $this->addClasses( array( 'oo-ui-labelWidget' ) ); } public function getConfig( &$config ) { if ( $this->input !== null ) { $config['input'] = $this->input; } return parent::getConfig( $config ); } }