Sylius\Bundle\GridBundle\DependencyInjection\Configuration::addGridsSection PHP 메소드

addGridsSection() 개인적인 메소드

private addGridsSection ( ArrayNodeDefinition $node )
$node Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition
    private function addGridsSection(ArrayNodeDefinition $node)
    {
        $node->children()->arrayNode('grids')->useAttributeAsKey('code')->prototype('array')->children()->scalarNode('extends')->cannotBeEmpty()->end()->arrayNode('driver')->addDefaultsIfNotSet()->children()->scalarNode('name')->cannotBeEmpty()->defaultValue(DoctrineORMDriver::NAME)->end()->arrayNode('options')->prototype('variable')->end()->defaultValue([])->end()->end()->end()->arrayNode('sorting')->performNoDeepMerging()->useAttributeAsKey('name')->prototype('enum')->values(['asc', 'desc'])->cannotBeEmpty()->end()->end()->arrayNode('fields')->useAttributeAsKey('name')->prototype('array')->children()->scalarNode('type')->isRequired()->cannotBeEmpty()->end()->scalarNode('label')->cannotBeEmpty()->end()->scalarNode('path')->cannotBeEmpty()->end()->scalarNode('sortable')->end()->scalarNode('enabled')->defaultTrue()->end()->arrayNode('options')->prototype('variable')->end()->end()->end()->end()->end()->arrayNode('filters')->useAttributeAsKey('name')->prototype('array')->children()->scalarNode('type')->isRequired()->cannotBeEmpty()->end()->scalarNode('label')->cannotBeEmpty()->end()->scalarNode('enabled')->defaultTrue()->end()->scalarNode('template')->end()->arrayNode('options')->prototype('variable')->end()->end()->end()->end()->end()->arrayNode('actions')->useAttributeAsKey('name')->prototype('array')->useAttributeAsKey('name')->prototype('array')->children()->scalarNode('type')->isRequired()->end()->scalarNode('label')->end()->scalarNode('icon')->end()->arrayNode('options')->prototype('variable')->end()->end()->end()->end()->end()->end()->end()->end()->end()->end();
    }