<?php
/*
* Plugin Name : ExpressLink4
*
* Copyright (C) BraTech Co., Ltd. All Rights Reserved.
* http://www.bratech.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\ExpressLink42\Form\Type;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver;
class DeliverySelectType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'class' => 'Eccube\Entity\Delivery',
'choice_label' => 'service_name',
'label' => false,
'multiple'=> true,
'expanded' => true,
'required' => false,
]);
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'delivery_select';
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return EntityType::class;
}
}