src/Eccube/Form/Type/Master/JobType.php line 20

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. class JobType extends AbstractType
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function configureOptions(OptionsResolver $resolver)
  22. {
  23. $resolver->setDefaults([
  24. 'class' => 'Eccube\Entity\Master\Job',
  25. 'placeholder' => 'common.select',
  26. ]);
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function getBlockPrefix()
  32. {
  33. return 'job';
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function getParent()
  39. {
  40. return MasterType::class;
  41. }
  42. }