| @@ 96-121 (lines=26) @@ | ||
| 93 | * |
|
| 94 | * @return \Symfony\Component\Config\Definition\Builder\NodeDefinition The styles node. |
|
| 95 | */ |
|
| 96 | private function createStylesNode() |
|
| 97 | { |
|
| 98 | return $this->createNode('styles') |
|
| 99 | ->normalizeKeys(false) |
|
| 100 | ->useAttributeAsKey('name') |
|
| 101 | ->prototype('array') |
|
| 102 | ->prototype('array') |
|
| 103 | ->children() |
|
| 104 | ->scalarNode('name')->end() |
|
| 105 | ->scalarNode('type')->end() |
|
| 106 | ->scalarNode('widget')->end() |
|
| 107 | ->variableNode('element')->end() |
|
| 108 | ->arrayNode('styles') |
|
| 109 | ->normalizeKeys(false) |
|
| 110 | ->useAttributeAsKey('name') |
|
| 111 | ->prototype('scalar')->end() |
|
| 112 | ->end() |
|
| 113 | ->arrayNode('attributes') |
|
| 114 | ->normalizeKeys(false) |
|
| 115 | ->useAttributeAsKey('name') |
|
| 116 | ->prototype('scalar')->end() |
|
| 117 | ->end() |
|
| 118 | ->end() |
|
| 119 | ->end() |
|
| 120 | ->end(); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Creates the templates node. |
|
| @@ 128-154 (lines=27) @@ | ||
| 125 | * |
|
| 126 | * @return \Symfony\Component\Config\Definition\Builder\NodeDefinition The templates node. |
|
| 127 | */ |
|
| 128 | private function createTemplatesNode() |
|
| 129 | { |
|
| 130 | return $this->createNode('templates') |
|
| 131 | ->normalizeKeys(false) |
|
| 132 | ->useAttributeAsKey('name') |
|
| 133 | ->prototype('array') |
|
| 134 | ->children() |
|
| 135 | ->scalarNode('imagesPath')->end() |
|
| 136 | ->arrayNode('templates') |
|
| 137 | ->prototype('array') |
|
| 138 | ->children() |
|
| 139 | ->scalarNode('title')->end() |
|
| 140 | ->scalarNode('image')->end() |
|
| 141 | ->scalarNode('description')->end() |
|
| 142 | ->scalarNode('html')->end() |
|
| 143 | ->scalarNode('template')->end() |
|
| 144 | ->arrayNode('template_parameters') |
|
| 145 | ->normalizeKeys(false) |
|
| 146 | ->useAttributeAsKey('name') |
|
| 147 | ->prototype('scalar')->end() |
|
| 148 | ->end() |
|
| 149 | ->end() |
|
| 150 | ->end() |
|
| 151 | ->end() |
|
| 152 | ->end() |
|
| 153 | ->end(); |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Creates the filebrowsers node. |
|