allow to pass customfields to person list widget

This commit is contained in:
2016-10-20 12:10:52 +02:00
parent 771fa68c2f
commit 90ced95a4b
3 changed files with 35 additions and 2 deletions

View File

@@ -39,7 +39,13 @@ class PersonListWidgetFactory extends AbstractWidgetFactory
$node->scalarNode('filtering_class')
->defaultNull()
->end();
$node->arrayNode('custom_fields')
->prototype('scalar')->end()
->info("Add some custom field to the view. Add the slug of some custom field"
. " if you want to override the view and show their value in the list")
->example(array("custom-field-slug-1", "custom-field-slug-2"))
->cannotBeEmpty()
->end();
}
public function getAllowedPlaces()