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