mixin( new GroupElement( $this, array_merge( $config, array( 'group' => $this ) ) ) ); // Initialization $attributeWhitelist = array( 'method', 'action', 'enctype' ); $this ->addClasses( array( 'oo-ui-formLayout' ) ) ->setAttributes( array_intersect_key( $config, array_flip( $attributeWhitelist ) ) ); if ( isset( $config['items'] ) ) { $this->addItems( $config['items'] ); } } public function getConfig( &$config ) { foreach ( array( 'method', 'action', 'enctype' ) as $attr ) { $value = $this->getAttribute( $attr ); if ( $value !== null ) { $config[$attr] = $value; } } return parent::getConfig( $config ); } }