vendor/pimcore/output-data-config-toolkit-bundle/src/DependencyInjection/Configuration.php line 16

Open in your IDE?
  1. <?php
  2. namespace OutputDataConfigToolkitBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. class Configuration implements ConfigurationInterface
  6. {
  7.     /**
  8.      * {@inheritdoc}
  9.      */
  10.     public function getConfigTreeBuilder()
  11.     {
  12.         $treeBuilder = new TreeBuilder();
  13.         $rootNode $treeBuilder->root('output_data_config_toolkit');
  14.         $rootNode
  15.             ->children()
  16.                 ->arrayNode("classification_store")
  17.                     ->children()
  18.                         ->enumNode('display_mode')
  19.                             ->info("possible values are [all, object, relevant, none]")
  20.                             ->values([
  21.                                 'all',          // always show all keys
  22.                                 'object',       // only show keys which are in any assigned group
  23.                                 'relevant',     // use 'object' mode if any group is assigned, else show all keys
  24.                                 'none'          // do not show classification store keys
  25.                             ])
  26.                             ->defaultValue('relevant')
  27.                         ->end()
  28.                     ->end()
  29.                 ->end()
  30.                 ->arrayNode("tab_options")
  31.                     ->children()
  32.                         ->booleanNode("order_by_name")->defaultFalse()->end()
  33.                         ->arrayNode("default_classes")
  34.                             ->info("list of class names or ids")
  35.                             ->scalarPrototype()->end()
  36.                         ->end()
  37.                     ->end()
  38.                 ->end()
  39.             ->end()
  40.         ->end();
  41.         return $treeBuilder;
  42.     }
  43. }