Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener
Resize a collection form element based on the data sent from the client.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class ResizeFormListener
implements
EventSubscriberInterface
{
- // members
- protected string $type;
- protected array $options;
- protected Boolean $allowAdd;
- protected Boolean $allowDelete;
- // methods
- public void __construct()
- public static void getSubscribedEvents()
- public void preSetData()
- public void preSubmit()
- public void onSubmit()
- public void preBind()
- public void onBind()
Hierarchy
Members
protected
- $allowAdd
—
Symfony\Component\Form\Extension\Core\EventListener\Boolean
Whether children could be added to the group - $allowDelete
—
Symfony\Component\Form\Extension\Core\EventListener\Boolean
Whether children could be removed from the group - $options — array
- $type — string
Methods
public
- __construct()
- getSubscribedEvents()
- onBind() — Alias of {@link onSubmit()}.
- onSubmit()
- preBind() — Alias of {@link preSubmit()}.
- preSetData()
- preSubmit()