private function addIndexTemplatesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->fixXmlConfig('index_template')
            ->children()
                ->arrayNode('index_templates')
                    ->useAttributeAsKey('name')
                    ->prototype('array')
                        ->children()
                            ->scalarNode('template_name')
                                ->info('Defaults to the name of the index template, but can be modified if the index name is different in ElasticSearch')
                            ->end()
                            ->scalarNode('template')->isRequired()->end()
                            ->scalarNode('client')->end()
                            ->variableNode('settings')->defaultValue([])->end()
                        ->end()
                        ->append($this->getTypesNode())
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addIndexTemplatesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->fixXmlConfig('index_template')
            ->children()
                ->arrayNode('index_templates')
                    ->useAttributeAsKey('name')
                    ->prototype('array')
                        ->children()
                            ->scalarNode('template_name')
                                ->info('Defaults to the name of the index template, but can be modified if the index name is different in ElasticSearch')
                            ->end()
                            ->scalarNode('template')->isRequired()->end()
                            ->scalarNode('client')->end()
                            ->variableNode('settings')->defaultValue([])->end()
                        ->end()
                        ->append($this->getTypesNode())
                    ->end()
                ->end()
            ->end()
        ;
    }
private function addIndexTemplatesSection ( ArrayNodeDefinition $ rootNode ) { $ rootNode -> fixXmlConfig ( 'index_template' ) -> children ( ) -> arrayNode ( 'index_templates' ) -> useAttributeAsKey ( 'name' ) -> prototype ( 'array' ) -> children ( ) -> scalarNode ( 'template_name' ) -> info ( 'Defaults to the name of the index template, but can be modified if the index name is different in ElasticSearch' ) -> end ( ) -> scalarNode ( 'template' ) -> isRequired ( ) -> end ( ) -> scalarNode ( 'client' ) -> end ( ) -> variableNode ( 'settings' ) -> defaultValue ( [ ] ) -> end ( ) -> end ( ) -> append ( $ this -> getTypesNode ( ) ) -> end ( ) -> end ( ) -> end ( ) ; }
Adds the configuration for the "index_templates" key.

@param ArrayNodeDefinition $rootNode

@return void
Adds the configuration for the index_templates key .