DependencyInjection/Configuration.php
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('sulu_form');

        $rootNode->children()
            ->scalarNode('mailchimp_api_key')->defaultValue(null)->end()
            ->scalarNode('mailchimp_subscribe_status')->defaultValue('subscribed')->end()
            ->enumNode('media_collection_strategy')
                ->values([
                    SuluFormExtension::MEDIA_COLLECTION_STRATEGY_SINGLE,
                    SuluFormExtension::MEDIA_COLLECTION_STRATEGY_TREE,
                ])
                ->defaultValue(SuluFormExtension::MEDIA_COLLECTION_STRATEGY_SINGLE)
            ->end()
            ->arrayNode('static_forms')
                ->useAttributeAsKey('name')
                ->prototype('array')
                    ->children()
                        ->scalarNode('class')->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('mail')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('from')->defaultValue('%sulu_admin.email%')->end()
                    ->scalarNode('to')->defaultValue('%sulu_admin.email%')->end()
                    ->arrayNode('templates')
                        ->addDefaultsIfNotSet()
                        ->children()
                            ->scalarNode('notify')
                                ->defaultValue('SuluFormBundle:mails:notify.html.twig')
                            ->end()
                            ->scalarNode('customer')
                                ->defaultValue('SuluFormBundle:mails:customer.html.twig')
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('dynamic_list_builder')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('default')->defaultValue('simple')->end()
                    ->scalarNode('delimiter')->defaultValue(PHP_EOL)->end()
                ->end()
            ->end()
            ->booleanNode('dynamic_auto_title')->defaultValue(true)->end()
            ->arrayNode('dynamic_widths')
                ->normalizeKeys(false)
                ->prototype('scalar')->end()->defaultValue([
                    'full' => 'sulu_form.width.full',
                    'half' => 'sulu_form.width.half',
                    'one-third' => 'sulu_form.width.one-third',
                    'two-thirds' => 'sulu_form.width.two-thirds',
                    'one-quarter' => 'sulu_form.width.one-quarter',
                    'three-quarters' => 'sulu_form.width.three-quarters',
                    'one-sixth' => 'sulu_form.width.one-sixth',
                    'five-sixths' => 'sulu_form.width.five-sixths',
                ])
            ->end()
            ->variableNode('dynamic_lists')->defaultValue([])->end()
            ->arrayNode('ajax_templates')
                ->normalizeKeys(false)
                ->prototype('scalar')->end()->defaultValue([])
            ->end()
            ->arrayNode('dynamic_disabled_types')
                ->prototype('scalar')->end()->defaultValue([])
            ->end()
        ;

        return $treeBuilder;
    }
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('sulu_form');

        $rootNode->children()
            ->scalarNode('mailchimp_api_key')->defaultValue(null)->end()
            ->scalarNode('mailchimp_subscribe_status')->defaultValue('subscribed')->end()
            ->enumNode('media_collection_strategy')
                ->values([
                    SuluFormExtension::MEDIA_COLLECTION_STRATEGY_SINGLE,
                    SuluFormExtension::MEDIA_COLLECTION_STRATEGY_TREE,
                ])
                ->defaultValue(SuluFormExtension::MEDIA_COLLECTION_STRATEGY_SINGLE)
            ->end()
            ->arrayNode('static_forms')
                ->useAttributeAsKey('name')
                ->prototype('array')
                    ->children()
                        ->scalarNode('class')->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('mail')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('from')->defaultValue('%sulu_admin.email%')->end()
                    ->scalarNode('to')->defaultValue('%sulu_admin.email%')->end()
                    ->arrayNode('templates')
                        ->addDefaultsIfNotSet()
                        ->children()
                            ->scalarNode('notify')
                                ->defaultValue('SuluFormBundle:mails:notify.html.twig')
                            ->end()
                            ->scalarNode('customer')
                                ->defaultValue('SuluFormBundle:mails:customer.html.twig')
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
            ->arrayNode('dynamic_list_builder')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('default')->defaultValue('simple')->end()
                    ->scalarNode('delimiter')->defaultValue(PHP_EOL)->end()
                ->end()
            ->end()
            ->booleanNode('dynamic_auto_title')->defaultValue(true)->end()
            ->arrayNode('dynamic_widths')
                ->normalizeKeys(false)
                ->prototype('scalar')->end()->defaultValue([
                    'full' => 'sulu_form.width.full',
                    'half' => 'sulu_form.width.half',
                    'one-third' => 'sulu_form.width.one-third',
                    'two-thirds' => 'sulu_form.width.two-thirds',
                    'one-quarter' => 'sulu_form.width.one-quarter',
                    'three-quarters' => 'sulu_form.width.three-quarters',
                    'one-sixth' => 'sulu_form.width.one-sixth',
                    'five-sixths' => 'sulu_form.width.five-sixths',
                ])
            ->end()
            ->variableNode('dynamic_lists')->defaultValue([])->end()
            ->arrayNode('ajax_templates')
                ->normalizeKeys(false)
                ->prototype('scalar')->end()->defaultValue([])
            ->end()
            ->arrayNode('dynamic_disabled_types')
                ->prototype('scalar')->end()->defaultValue([])
            ->end()
        ;

        return $treeBuilder;
    }
{@inheritdoc}