Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function addSemanticConfig(NodeBuilder $nodeBuilder) |
||
18 | { |
||
19 | $nodeBuilder |
||
20 | ->arrayNode('twig_variables') |
||
21 | ->info('Contextual Twig variables.') |
||
22 | ->useAttributeAsKey('name') |
||
23 | ->normalizeKeys(false) |
||
24 | ->example([ |
||
25 | 'some' => 'variable', |
||
26 | 'nested' => [ |
||
27 | 'some' => 'variable', |
||
28 | 'other' => 123, |
||
29 | ], |
||
30 | ]) |
||
31 | ->prototype('variable')->end() |
||
32 | ->end(); |
||
33 | } |
||
34 | |||
51 |