Ojs\JournalBundle\Form\Type\ArticleStartType::buildForm PHP Метод

buildForm() публичный Метод

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('articleSubmissionFiles', 'collection', array('type' => new ArticleSubmissionFileType(), 'allow_add' => false, 'allow_delete' => false, 'options' => array()))->add('checks', 'choice', array('multiple' => true, 'expanded' => true, 'choice_list' => new ArrayChoiceList($options['checkListsChoices'], null), 'constraints' => array(new EqualTo(array('value' => array_values($options['checkListsChoices']), 'message' => 'all.fields.must.be.selected')))));
    }