src/bundle/DependencyInjection/Configuration.php
private function addAlloyEditorSection(NodeBuilder $ezRichTextNode)
    {
        return $ezRichTextNode
                ->arrayNode('alloy_editor')
                    ->children()
                        ->arrayNode('extra_plugins')
                            ->example(['plugin1', 'plugin2'])
                            ->prototype('scalar')->end()
                        ->end()
                        ->arrayNode('extra_buttons')
                            ->arrayPrototype()
                                ->example(['button1', 'button2'])
                                ->prototype('scalar')->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ;
    }
private function addAlloyEditorSection(NodeBuilder $ezRichTextNode)
    {
        return $ezRichTextNode
                ->arrayNode('alloy_editor')
                    ->children()
                        ->arrayNode('extra_plugins')
                            ->example(['plugin1', 'plugin2'])
                            ->prototype('scalar')->end()
                        ->end()
                        ->arrayNode('extra_buttons')
                            ->arrayPrototype()
                                ->example(['button1', 'button2'])
                                ->prototype('scalar')->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ;
    }
private function addAlloyEditorSection ( NodeBuilder $ ezRichTextNode ) { return $ ezRichTextNode -> arrayNode ( 'alloy_editor' ) -> children ( ) -> arrayNode ( 'extra_plugins' ) -> example ( [ 'plugin1' , 'plugin2' ] ) -> prototype ( 'scalar' ) -> end ( ) -> end ( ) -> arrayNode ( 'extra_buttons' ) -> arrayPrototype ( ) -> example ( [ 'button1' , 'button2' ] ) -> prototype ( 'scalar' ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) -> end ( ) ; }
Define RichText AlloyEditor Semantic Configuration.

The configuration is available at:
<code>
ezpublish:
ezrichtext:
alloy_editor:
extra_plugins: [plugin1, plugin2]
extra_buttons:
paragraph: [button1, button2]
embed: [button1]
</code>

Please note extra_buttons setting will be deprecated in eZ Platform 3.x.
The alternative and more flexible solution will be introduced.
So you will need to update Online Editor Extra Buttons as part of eZ Platform 3.x upgrade.

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

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