class ResizeFormListener implements EventSubscriberInterface
Resize a collection form element based on the data sent from the client.
protected | $type | ||
protected | $options | ||
protected | $allowAdd | ||
protected | $allowDelete |
__construct(string $type, array $options = array(), bool $allowAdd = false, bool $allowDelete = false, bool|callable $deleteEmpty = false) | ||
static array | getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. | |
preSetData(FormEvent $event) | ||
preSubmit(FormEvent $event) | ||
onSubmit(FormEvent $event) |
string | $type | |
array | $options | |
bool | $allowAdd | Whether children could be added to the group |
bool | $allowDelete | Whether children could be removed from the group |
bool|callable | $deleteEmpty |
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
array | The event names to listen to |
FormEvent | $event |
FormEvent | $event |
FormEvent | $event |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.html