private function addCustomStylesSection(NodeBuilder $ezRichTextNode)
    {
        return $ezRichTextNode
                ->arrayNode('custom_styles')
                // workaround: take into account Custom Styles names when merging configs
                ->useAttributeAsKey('style')
                ->arrayPrototype()
                    ->children()
                        ->scalarNode('template')
                            ->defaultNull()
                        ->end()
                        ->scalarNode('inline')
                            ->defaultFalse()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addCustomStylesSection(NodeBuilder $ezRichTextNode)
    {
        return $ezRichTextNode
                ->arrayNode('custom_styles')
                // workaround: take into account Custom Styles names when merging configs
                ->useAttributeAsKey('style')
                ->arrayPrototype()
                    ->children()
                        ->scalarNode('template')
                            ->defaultNull()
                        ->end()
                        ->scalarNode('inline')
                            ->defaultFalse()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addCustomStylesSection ( NodeBuilder $ ezRichTextNode ) { return $ ezRichTextNode -> arrayNode ( 'custom_styles' ) // workaround: take into account Custom Styles names when merging configs -> useAttributeAsKey ( 'style' ) -> arrayPrototype ( ) -> children ( ) -> scalarNode ( 'template' ) -> defaultNull ( ) -> end ( ) -> scalarNode ( 'inline' ) -> defaultFalse ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; }
Define RichText Custom Styles Semantic Configuration.

The configuration is available at:
<code>
ezpublish:
ezrichtext:
custom_styles:
</code>

@param \Symfony\Component\Config\Definition\Builder\NodeBuilder $ezRichTextNode

@return \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition
Define RichText Custom Styles Semantic Configuration .