Property | Type | Description | |
---|---|---|---|
$factory | Symfony\Component\Form\FormFactoryInterface | ||
$registry | Sylius\Component\Registry\ServiceRegistryInterface |
Method | Description | |
---|---|---|
__construct ( Sylius\Component\Registry\ServiceRegistryInterface $registry, Symfony\Component\Form\FormFactoryInterface $factory ) | ||
getSubscribedEvents ( ) | ||
postSetData ( Symfony\Component\Form\FormEvent $event ) | ||
preSetData ( Symfony\Component\Form\FormEvent $event ) | ||
preSubmit ( Symfony\Component\Form\FormEvent $event ) |
Method | Description | |
---|---|---|
addConfigurationFields ( Symfony\Component\Form\FormInterface $form, string $registryIdentifier, array $data = [] ) | ||
getConfiguration ( $model ) : array | ||
getRegistryIdentifier ( Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface $rule = null, Symfony\Component\Form\FormInterface $form ) : null | string |
public __construct ( Sylius\Component\Registry\ServiceRegistryInterface $registry, Symfony\Component\Form\FormFactoryInterface $factory ) | ||
$registry | Sylius\Component\Registry\ServiceRegistryInterface | |
$factory | Symfony\Component\Form\FormFactoryInterface |
protected addConfigurationFields ( Symfony\Component\Form\FormInterface $form, string $registryIdentifier, array $data = [] ) | ||
$form | Symfony\Component\Form\FormInterface | |
$registryIdentifier | string | |
$data | array |
abstract protected getConfiguration ( $model ) : array | ||
return | array |
protected getRegistryIdentifier ( Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface $rule = null, Symfony\Component\Form\FormInterface $form ) : null | string | ||
$rule | Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface | |
$form | Symfony\Component\Form\FormInterface | |
return | null | string |
public postSetData ( Symfony\Component\Form\FormEvent $event ) | ||
$event | Symfony\Component\Form\FormEvent |
public preSetData ( Symfony\Component\Form\FormEvent $event ) | ||
$event | Symfony\Component\Form\FormEvent |
public preSubmit ( Symfony\Component\Form\FormEvent $event ) | ||
$event | Symfony\Component\Form\FormEvent |
protected FormFactoryInterface,Symfony\Component\Form $factory | ||
return | Symfony\Component\Form\FormFactoryInterface |