PHP Class Tetranz\Select2EntityBundle\Form\Type\Select2EntityType

Inheritance: extends Symfony\Component\Form\AbstractType
Show file Open project: tetranz/select2entity-bundle

Protected Properties

Property Type Description
$config array
$em Doctrine\Common\Persistence\ObjectManager
$router Symfony\Component\Routing\RouterInterface

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\Routing\RouterInterface $router, array $config )
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
getBlockPrefix ( ) : string Symfony 2.8+
getName ( ) : string pre Symfony 3 compatibility
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver ) Added for pre Symfony 2.7 compatibility

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $em, Symfony\Component\Routing\RouterInterface $router, array $config )
$em Doctrine\Common\Persistence\ObjectManager
$router Symfony\Component\Routing\RouterInterface
$config array

buildForm() public method

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array

configureOptions() public method

public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

finishView() public method

public finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView
$form Symfony\Component\Form\FormInterface
$options array

getBlockPrefix() public method

Symfony 2.8+
public getBlockPrefix ( ) : string
return string

getName() public method

pre Symfony 3 compatibility
public getName ( ) : string
return string

setDefaultOptions() public method

Added for pre Symfony 2.7 compatibility
public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolverInterface

Property Details

$config protected property

protected array $config
return array

$em protected property

protected ObjectManager,Doctrine\Common\Persistence $em
return Doctrine\Common\Persistence\ObjectManager

$router protected property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface