src/Eccube/Form/Type/Master/PrefType.php line 23

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of EC-CUBE
  4. *
  5. * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6. *
  7. * http://www.ec-cube.co.jp/
  8. *
  9. * For the full copyright and license information, please view the LICENSE
  10. * file that was distributed with this source code.
  11. */
  12. namespace Eccube\Form\Type\Master;
  13. use Eccube\Form\Type\MasterType;
  14. use Symfony\Component\Form\AbstractType;
  15. use Symfony\Component\OptionsResolver\OptionsResolver;
  16. /**
  17. * Class PrefType
  18. */
  19. class PrefType extends AbstractType
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function configureOptions(OptionsResolver $resolver)
  25. {
  26. $resolver->setDefaults([
  27. 'class' => 'Eccube\Entity\Master\Pref',
  28. 'placeholder' => 'common.select__pref',
  29. ]);
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function getBlockPrefix()
  35. {
  36. return 'pref';
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function getParent()
  42. {
  43. return MasterType::class;
  44. }
  45. }