From 1f96f76f8775dacc7a59fee3ee477051c9524e1d Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Tue, 26 Nov 2024 13:42:50 +0100 Subject: [PATCH] ChillPersonBundle: add a visibility parameter to addFieldNode() --- .../ChillPersonBundle/DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/Configuration.php b/src/Bundle/ChillPersonBundle/DependencyInjection/Configuration.php index 0d935e8c0..97eb4c423 100644 --- a/src/Bundle/ChillPersonBundle/DependencyInjection/Configuration.php +++ b/src/Bundle/ChillPersonBundle/DependencyInjection/Configuration.php @@ -141,7 +141,7 @@ class Configuration implements ConfigurationInterface return $treeBuilder; } - private function addFieldNode($key) + private function addFieldNode(string $key, string $defaultVisibility = 'visible') { $tree = new TreeBuilder($key, 'enum'); $node = $tree->getRootNode(); @@ -153,7 +153,7 @@ class Configuration implements ConfigurationInterface $node ->values(['hidden', 'visible']) - ->defaultValue('visible') + ->defaultValue($defaultVisibility) ->info($info) ->end();