| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 29 | 
| Code Lines | 24 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php | ||
| 26 | public function getConfigTreeBuilder(): TreeBuilder | ||
| 27 |     { | ||
| 28 | $treeBuilder = new TreeBuilder($this->alias); | ||
| 29 | |||
| 30 | $rootNode = $treeBuilder->getRootNode(); | ||
| 31 | $rootNode | ||
| 32 | ->children() | ||
| 33 |                 ->booleanNode('enabled') | ||
| 34 | ->defaultTrue() | ||
| 35 | ->end() | ||
| 36 |                 ->scalarNode('trigger_event') | ||
| 37 |                     ->defaultValue('blur') | ||
| 38 | ->end() | ||
| 39 |                 ->arrayNode('date_pattern') | ||
| 40 |                     ->useAttributeAsKey('locale') | ||
| 41 | ->scalarPrototype()->end() | ||
| 42 | ->end() | ||
| 43 |                 ->arrayNode('time_pattern') | ||
| 44 |                     ->useAttributeAsKey('locale') | ||
| 45 | ->scalarPrototype()->end() | ||
| 46 | ->end() | ||
| 47 |                 ->arrayNode('datetime_pattern') | ||
| 48 |                     ->useAttributeAsKey('locale') | ||
| 49 | ->scalarPrototype()->end() | ||
| 50 | ->end() | ||
| 51 | ->end() | ||
| 52 | ; | ||
| 53 | |||
| 54 | return $treeBuilder; | ||
| 55 | } | ||
| 57 |