mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
ChillPersonBundle: add a visibility parameter to addFieldNode()
This commit is contained in:
parent
65902ea231
commit
1f96f76f87
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user