private function addFlashMessageSection(ArrayNodeDefinition $node)
    {
        $node
            ->children()
                ->scalarNode('form_type')
                    ->defaultValue('standard')
                    ->validate()
                    ->ifNotInArray($validFormTypes = ['standard', 'horizontal'])
                        ->thenInvalid(sprintf(
                            'The form_type option value must be one of %s',
                            $validFormTypesString = implode(', ', $validFormTypes)
                        ))
                    ->end()
                    ->info(sprintf('Must be one of %s', $validFormTypesString))
                ->end()
                ->arrayNode('flashmessage')
                    ->useAttributeAsKey('message')
                    ->prototype('array')
                        ->children()
                            ->scalarNode('css_class')->end()
                            ->arrayNode('types')
                                ->useAttributeAsKey('type')
                                ->prototype('array')
                                    ->children()
                                        ->scalarNode('domain')->defaultValue('SonataCoreBundle')->end()
                                    ->end()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addFlashMessageSection(ArrayNodeDefinition $node)
    {
        $node
            ->children()
                ->scalarNode('form_type')
                    ->defaultValue('standard')
                    ->validate()
                    ->ifNotInArray($validFormTypes = ['standard', 'horizontal'])
                        ->thenInvalid(sprintf(
                            'The form_type option value must be one of %s',
                            $validFormTypesString = implode(', ', $validFormTypes)
                        ))
                    ->end()
                    ->info(sprintf('Must be one of %s', $validFormTypesString))
                ->end()
                ->arrayNode('flashmessage')
                    ->useAttributeAsKey('message')
                    ->prototype('array')
                        ->children()
                            ->scalarNode('css_class')->end()
                            ->arrayNode('types')
                                ->useAttributeAsKey('type')
                                ->prototype('array')
                                    ->children()
                                        ->scalarNode('domain')->defaultValue('SonataCoreBundle')->end()
                                    ->end()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addFlashMessageSection ( ArrayNodeDefinition $ node ) { $ node -> children ( ) -> scalarNode ( 'form_type' ) -> defaultValue ( 'standard' ) -> validate ( ) -> ifNotInArray ( $ validFormTypes = [ 'standard' , 'horizontal' ] ) -> thenInvalid ( sprintf ( 'The form_type option value must be one of %s' , $ validFormTypesString = implode ( ', ' , $ validFormTypes ) ) ) -> end ( ) -> info ( sprintf ( 'Must be one of %s' , $ validFormTypesString ) ) -> end ( ) -> arrayNode ( 'flashmessage' ) -> useAttributeAsKey ( 'message' ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'css_class' ) -> end ( ) -> arrayNode ( 'types' ) -> useAttributeAsKey ( 'type' ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'domain' ) -> defaultValue ( 'SonataCoreBundle' ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; }
Returns configuration for flash messages.
Returns configuration for flash messages .