public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('expression', TextType::class, [
                'required' => true,
                'constraints' => [new ExpressionConstraint()],
            ])
            ->add('arguments', TextType::class, [
                'required' => false,
                'constraints' => [new ArgumentsConstraint()],
            ])
            ->add('priority', IntegerType::class, [
                'required' => true,
            ])
            ->add('enabled', CheckboxType::class, [
                'required' => false,
            ])
            ->add('update', SubmitType::class, [
                'label' => /** @Desc("Update") */
                    'cron_update_form.update',
            ]);
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('expression', TextType::class, [
                'required' => true,
                'constraints' => [new ExpressionConstraint()],
            ])
            ->add('arguments', TextType::class, [
                'required' => false,
                'constraints' => [new ArgumentsConstraint()],
            ])
            ->add('priority', IntegerType::class, [
                'required' => true,
            ])
            ->add('enabled', CheckboxType::class, [
                'required' => false,
            ])
            ->add('update', SubmitType::class, [
                'label' => /** @Desc("Update") */
                    'cron_update_form.update',
            ]);
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'expression' , TextType :: class , [ 'required' => true , 'constraints' => [ new ExpressionConstraint ( ) ] , ] ) -> add ( 'arguments' , TextType :: class , [ 'required' => false , 'constraints' => [ new ArgumentsConstraint ( ) ] , ] ) -> add ( 'priority' , IntegerType :: class , [ 'required' => true , ] ) -> add ( 'enabled' , CheckboxType :: class , [ 'required' => false , ] ) -> add ( 'update' , SubmitType :: class , [ 'label' => /** @Desc("Update") */ 'cron_update_form.update' , ] ) ; }
Build cron form.

@param FormBuilderInterface $builder
@param array $options
Build cron form .