FormType/ModerateMessageFormType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add(
                self::FORM_CHILD_IS_APPROVED,
                CheckboxType::class,
                ['label' => 'Approve (Yes/No)', 'required' => false]
            )
            ->add('Save', SubmitType::class, ['label' => 'Сохранить',]);
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) : void { $ builder -> add ( self :: FORM_CHILD_IS_APPROVED , CheckboxType :: class , [ 'label' => 'Approve (Yes/No)' , 'required' => false ] ) -> add ( 'Save' , SubmitType :: class , [ 'label' => 'Сохранить',]); }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options