mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
add some doc [ci-skip]
This commit is contained in:
parent
13b96637bb
commit
6fccc70e41
@ -11,6 +11,24 @@ use Symfony\Component\Form\FormInterface;
|
|||||||
use Symfony\Component\Form\FormView;
|
use Symfony\Component\Form\FormView;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form type for picking an address.
|
||||||
|
*
|
||||||
|
* In the UI, this resolve to a vuejs component which will insert the created address id into the
|
||||||
|
* hidden's value. It will also allow to edit existing addresses without changing the id.
|
||||||
|
*
|
||||||
|
* In every page where this component is shown, you must include the required module:
|
||||||
|
*
|
||||||
|
* ```twig
|
||||||
|
* {% block js %}
|
||||||
|
* {{ encore_entry_script_tags('mod_input_address') }}
|
||||||
|
* {% endblock %}
|
||||||
|
*
|
||||||
|
* {% block css %}
|
||||||
|
* {{ encore_entry_link_tags('mod_input_address') }}
|
||||||
|
* {% endblock %}
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
final class PickAddressType extends AbstractType
|
final class PickAddressType extends AbstractType
|
||||||
{
|
{
|
||||||
private AddressToIdDataTransformer $addressToIdDataTransformer;
|
private AddressToIdDataTransformer $addressToIdDataTransformer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user