src/Framework/Form/Fieldset.php
public static function createFromConfig(array $config)
    {
        $fields = [];
        foreach ($config as $name => $field) {
            $fields[$name] = Fields::create($name, $field);
        }
        return new static($fields);
    }
public static function createFromConfig(array $config)
    {
        $fields = [];
        foreach ($config as $name => $field) {
            $fields[$name] = Fields::create($name, $field);
        }
        return new static($fields);
    }
public static function createFromConfig ( array $ config ) { $ fields = [ ] ; foreach ( $ config as $ name => $ field ) { $ fields [ $ name ] = Fields :: create ( $ name , $ field ) ; } return new static ( $ fields ) ; }
Method to create form fieldset object and fields from config

@param  array  $config
@return Fieldset
Method to create form fieldset object and fields from config