vendor/sylius/sylius/src/Sylius/Bundle/CustomerBundle/Form/Type/CustomerType.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Bundle\CustomerBundle\Form\Type;
  12. use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
  13. use Symfony\Component\Form\FormBuilderInterface;
  14. final class CustomerType extends AbstractResourceType
  15. {
  16.     public function buildForm(FormBuilderInterface $builder, array $options): void
  17.     {
  18.         $builder
  19.             ->add('group'CustomerGroupChoiceType::class, [
  20.                 'required' => false,
  21.             ])
  22.         ;
  23.     }
  24.     public function getParent(): string
  25.     {
  26.         return CustomerProfileType::class;
  27.     }
  28.     public function getBlockPrefix(): string
  29.     {
  30.         return 'sylius_customer';
  31.     }
  32. }