booleanNode('only_active') ->defaultTrue() ->end(); $node->integerNode('number_of_items') ->defaultValue(50) ->end(); $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(['custom-field-slug-1', 'custom-field-slug-2']) ->requiresAtLeastOneElement() ->end(); } public function getAllowedPlaces() { return ['homepage']; } public function getServiceId(ContainerBuilder $containerBuilder, $place, $order, array $config) { return 'chill_person.widget.person_list'; } public function getWidgetAlias() { return 'person_list'; } }