<?php
namespace Customize\Form\Type\Front;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\FormBuilderInterface;
class AgreementType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('agreement', CheckboxType::class, [
'required' => false,
'label' => '約款に同意します',
'value' => '1',
]);
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'agreement_type';
}
}