eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Parser\BlockView::addSemanticConfig PHP Method

addSemanticConfig() public method

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(static::NODE_KEY)->info(static::INFO)->children()->arrayNode('block')->useAttributeAsKey('key')->normalizeKeys(false)->prototype('array')->children()->scalarNode('template')->isRequired()->info('Your template path, as MyBundle:subdir:my_template.html.twig')->end()->scalarNode('controller')->info(<<<EOT
Use custom controller instead of the default one to display a block matching your rules.
You can use the controller reference notation supported by Symfony.
EOT
)->example('MyBundle:MyControllerClass:viewBlock')->end()->arrayNode('match')->info('Condition matchers configuration')->useAttributeAsKey('key')->prototype('variable')->end()->end()->end()->end()->end()->end()->beforeNormalization()->always()->then(function ($v) {
            return array('block' => $v);
        })->end()->end();
    }