Ojs\AdminBundle\Form\Type\IndexType::buildForm PHP Method

buildForm() public method

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('name', 'text', array('label' => 'name'))->add('logo', 'jb_crop_image_ajax', array('endpoint' => 'index', 'img_width' => 200, 'img_height' => 200, 'crop_options' => array('aspect-ratio' => 200 / 200, 'maxSize' => "[200, 200]")))->add('status', 'checkbox', ['label' => 'ojs.is_active', 'required' => false]);
    }