1 | <?php |
||
14 | class FormBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var FormFactoryInterface |
||
18 | */ |
||
19 | protected $formFactory; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $useCsrf; |
||
25 | |||
26 | /** |
||
27 | * @var ContentTypeService |
||
28 | */ |
||
29 | protected $contentTypeService; |
||
30 | |||
31 | /** |
||
32 | * @var RouterInterface |
||
33 | */ |
||
34 | protected $router; |
||
35 | |||
36 | /** |
||
37 | * FormBuilder constructor. |
||
38 | * |
||
39 | * @param FormFactoryInterface $formFactory |
||
40 | * @param ContentTypeService $contentTypeService |
||
41 | * @param RouterInterface $router |
||
42 | * @param bool $useCsrf |
||
43 | */ |
||
44 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * Creates Information collection Form object for given Location object. |
||
58 | * |
||
59 | * @param Location $location |
||
60 | * @param bool $useAjax |
||
61 | * |
||
62 | * @return FormBuilderInterface |
||
63 | */ |
||
64 | public function createFormForLocation(Location $location, $useAjax = false) |
||
87 | } |
||
88 |