PHP Class Elcodi\Admin\BannerBundle\Form\Type\BannerZoneType

Inheritance: extends Symfony\Component\Form\AbstractType, use trait Elcodi\Component\Core\Factory\Traits\FactoryTrait
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$bannerNamespace string Banner namespace
$languageNamespace string language namespace

Public Methods

Method Description
__construct ( string $languageNamespace, string $bannerNamespace ) Construct
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options ) Buildform function
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) Configures the options for this type.
getBlockPrefix ( ) : string Returns the prefix of the template block name for this type.
getName ( ) : string Return unique name for this form

Method Details

__construct() public method

Construct
public __construct ( string $languageNamespace, string $bannerNamespace )
$languageNamespace string language namespace
$bannerNamespace string Banner namespace

buildForm() public method

Buildform function
public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface the formBuilder
$options array the options for this form

configureOptions() public method

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.

getBlockPrefix() public method

The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
public getBlockPrefix ( ) : string
return string The prefix of the template block name

getName() public method

Return unique name for this form
Deprecation: Deprecated since Symfony 2.8, to be removed from Symfony 3.
public getName ( ) : string
return string

Property Details

$bannerNamespace protected property

Banner namespace
protected string $bannerNamespace
return string

$languageNamespace protected property

language namespace
protected string $languageNamespace
return string