PHP Class Sylius\Bundle\AttributeBundle\Form\Type\AttributeValueType

Author: Paweł Jędrzejewski ([email protected])
Author: Mateusz Zalewski ([email protected])
Inheritance: extends Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType
Datei anzeigen Open project: sylius/sylius Class Usage Examples

Protected Properties

Property Type Description
$attributeChoiceType string
$attributeRepository Sylius\Component\Resource\Repository\RepositoryInterface
$formTypeRegistry Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface

Public Methods

Method Description
__construct ( string $dataClass, array $validationGroups, string $attributeChoiceType, Sylius\Component\Resource\Repository\RepositoryInterface $attributeRepository, Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface $formTypeTypeRegistry )
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )

Protected Methods

Method Description
addValueField ( Symfony\Component\Form\FormInterface $form, Sylius\Component\Attribute\Model\AttributeInterface $attribute )

Method Details

__construct() public method

public __construct ( string $dataClass, array $validationGroups, string $attributeChoiceType, Sylius\Component\Resource\Repository\RepositoryInterface $attributeRepository, Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface $formTypeTypeRegistry )
$dataClass string
$validationGroups array
$attributeChoiceType string
$attributeRepository Sylius\Component\Resource\Repository\RepositoryInterface
$formTypeTypeRegistry Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface

addValueField() protected method

protected addValueField ( Symfony\Component\Form\FormInterface $form, Sylius\Component\Attribute\Model\AttributeInterface $attribute )
$form Symfony\Component\Form\FormInterface
$attribute Sylius\Component\Attribute\Model\AttributeInterface

buildForm() public method

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

Property Details

$attributeChoiceType protected_oe property

protected string $attributeChoiceType
return string

$attributeRepository protected_oe property

protected RepositoryInterface,Sylius\Component\Resource\Repository $attributeRepository
return Sylius\Component\Resource\Repository\RepositoryInterface

$formTypeRegistry protected_oe property

protected FormTypeRegistryInterface,Sylius\Bundle\ResourceBundle\Form\Registry $formTypeRegistry
return Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface