eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Parser\Page::addSemanticConfig PHP Метод

addSemanticConfig() публичный Метод

Adds semantic configuration definition.
public addSemanticConfig ( Symfony\Component\Config\Definition\Builder\NodeBuilder $nodeBuilder )
$nodeBuilder Symfony\Component\Config\Definition\Builder\NodeBuilder Node just under ezpublish.system.
    public function addSemanticConfig(NodeBuilder $nodeBuilder)
    {
        $nodeBuilder->arrayNode('ezpage')->children()->arrayNode('enabledLayouts')->prototype('scalar')->end()->info('List of enabled layout identifiers')->end()->arrayNode('enabledBlocks')->prototype('scalar')->end()->info('List of enabled block identifiers')->end()->arrayNode('layouts')->info('List of registered layouts, the key is the identifier of the layout')->useAttributeAsKey('key')->normalizeKeys(false)->prototype('array')->children()->scalarNode('name')->isRequired()->info('Name of the zone type')->end()->scalarNode('template')->isRequired()->info('Template to use to render this layout')->end()->end()->end()->end()->arrayNode('blocks')->info('List of available blocks, the key is the identifier of the block')->useAttributeAsKey('key')->normalizeKeys(false)->prototype('array')->children()->scalarNode('name')->isRequired()->info('Name of the block')->end()->end()->end()->end()->end()->end();
    }