add('network', 'choice', array( 'choices' => array( ElementSearcher::NETWORK_PUBLIC => 'tout le réseau', ElementSearcher::NETWORK_PERSONAL => 'mon réseau' ), 'required' => true, )); $builder->add('tags', 'choice', array( 'choices' => $options['tags'], 'expanded' => true, 'multiple' => true )); } public function getName() { return 'element_search_form'; } public function getDefaultOptions(array $options) { return array( 'tags' => array(), ); } }